Lines Matching full:clusters
458 * How many clusters in our truncate log.
743 u32 clusters) in ocfs2_clusters_to_blocks() argument
748 return (u64)clusters << c_to_b_bits; in ocfs2_clusters_to_blocks()
774 unsigned int clusters; in ocfs2_clusters_for_bytes() local
777 /* OCFS2 just cannot have enough clusters to overflow this */ in ocfs2_clusters_for_bytes()
778 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_clusters_for_bytes()
780 return clusters; in ocfs2_clusters_for_bytes()
787 unsigned int clusters; in ocfs2_bytes_to_clusters() local
789 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_bytes_to_clusters()
790 return clusters; in ocfs2_bytes_to_clusters()
801 u32 clusters) in ocfs2_clusters_to_bytes() argument
803 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_to_bytes()
810 unsigned int clusters; in ocfs2_block_to_cluster_start() local
812 clusters = ocfs2_blocks_to_clusters(sb, blocks); in ocfs2_block_to_cluster_start()
813 return (u64)clusters << bits; in ocfs2_block_to_cluster_start()
820 unsigned int clusters; in ocfs2_align_bytes_to_clusters() local
822 clusters = ocfs2_clusters_for_bytes(sb, bytes); in ocfs2_align_bytes_to_clusters()
823 return (u64)clusters << cl_bits; in ocfs2_align_bytes_to_clusters()
843 u32 clusters = pg_index; in ocfs2_page_index_to_clusters() local
847 clusters = pg_index << (PAGE_SHIFT - cbits); in ocfs2_page_index_to_clusters()
849 clusters = pg_index >> (cbits - PAGE_SHIFT); in ocfs2_page_index_to_clusters()
851 return clusters; in ocfs2_page_index_to_clusters()
855 * Find the 1st page index which covers the given clusters.
858 u32 clusters) in ocfs2_align_clusters_to_page_index() argument
861 pgoff_t index = clusters; in ocfs2_align_clusters_to_page_index()
864 index = (pgoff_t)clusters >> (PAGE_SHIFT - cbits); in ocfs2_align_clusters_to_page_index()
866 index = (pgoff_t)clusters << (cbits - PAGE_SHIFT); in ocfs2_align_clusters_to_page_index()
892 unsigned int clusters) in ocfs2_clusters_to_megabytes() argument
894 return clusters >> (20 - OCFS2_SB(sb)->s_clustersize_bits); in ocfs2_clusters_to_megabytes()