Lines Matching full:clusters

431 	 * How many clusters in our truncate log.
717 u32 clusters) in ocfs2_clusters_to_blocks() argument
722 return (u64)clusters << c_to_b_bits; in ocfs2_clusters_to_blocks()
748 unsigned int clusters; in ocfs2_clusters_for_bytes() local
751 /* OCFS2 just cannot have enough clusters to overflow this */ in ocfs2_clusters_for_bytes()
752 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_clusters_for_bytes()
754 return clusters; in ocfs2_clusters_for_bytes()
761 unsigned int clusters; in ocfs2_bytes_to_clusters() local
763 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_bytes_to_clusters()
764 return clusters; in ocfs2_bytes_to_clusters()
775 u32 clusters) in ocfs2_clusters_to_bytes() argument
777 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_to_bytes()
784 unsigned int clusters; in ocfs2_block_to_cluster_start() local
786 clusters = ocfs2_blocks_to_clusters(sb, blocks); in ocfs2_block_to_cluster_start()
787 return (u64)clusters << bits; in ocfs2_block_to_cluster_start()
794 unsigned int clusters; in ocfs2_align_bytes_to_clusters() local
796 clusters = ocfs2_clusters_for_bytes(sb, bytes); in ocfs2_align_bytes_to_clusters()
797 return (u64)clusters << cl_bits; in ocfs2_align_bytes_to_clusters()
817 u32 clusters = pg_index; in ocfs2_page_index_to_clusters() local
821 clusters = pg_index << (PAGE_SHIFT - cbits); in ocfs2_page_index_to_clusters()
823 clusters = pg_index >> (cbits - PAGE_SHIFT); in ocfs2_page_index_to_clusters()
825 return clusters; in ocfs2_page_index_to_clusters()
829 * Find the 1st page index which covers the given clusters.
832 u32 clusters) in ocfs2_align_clusters_to_page_index() argument
835 pgoff_t index = clusters; in ocfs2_align_clusters_to_page_index()
838 index = (pgoff_t)clusters >> (PAGE_SHIFT - cbits); in ocfs2_align_clusters_to_page_index()
840 index = (pgoff_t)clusters << (cbits - PAGE_SHIFT); in ocfs2_align_clusters_to_page_index()
866 unsigned int clusters) in ocfs2_clusters_to_megabytes() argument
868 return clusters >> (20 - OCFS2_SB(sb)->s_clustersize_bits); in ocfs2_clusters_to_megabytes()