Lines Matching full:clusters
445 * How many clusters in our truncate log.
731 u32 clusters) in ocfs2_clusters_to_blocks() argument
736 return (u64)clusters << c_to_b_bits; in ocfs2_clusters_to_blocks()
762 unsigned int clusters; in ocfs2_clusters_for_bytes() local
765 /* OCFS2 just cannot have enough clusters to overflow this */ in ocfs2_clusters_for_bytes()
766 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_clusters_for_bytes()
768 return clusters; in ocfs2_clusters_for_bytes()
775 unsigned int clusters; in ocfs2_bytes_to_clusters() local
777 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_bytes_to_clusters()
778 return clusters; in ocfs2_bytes_to_clusters()
789 u32 clusters) in ocfs2_clusters_to_bytes() argument
791 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_to_bytes()
798 unsigned int clusters; in ocfs2_block_to_cluster_start() local
800 clusters = ocfs2_blocks_to_clusters(sb, blocks); in ocfs2_block_to_cluster_start()
801 return (u64)clusters << bits; in ocfs2_block_to_cluster_start()
808 unsigned int clusters; in ocfs2_align_bytes_to_clusters() local
810 clusters = ocfs2_clusters_for_bytes(sb, bytes); in ocfs2_align_bytes_to_clusters()
811 return (u64)clusters << cl_bits; in ocfs2_align_bytes_to_clusters()
831 u32 clusters = pg_index; in ocfs2_page_index_to_clusters() local
835 clusters = pg_index << (PAGE_SHIFT - cbits); in ocfs2_page_index_to_clusters()
837 clusters = pg_index >> (cbits - PAGE_SHIFT); in ocfs2_page_index_to_clusters()
839 return clusters; in ocfs2_page_index_to_clusters()
843 * Find the 1st page index which covers the given clusters.
846 u32 clusters) in ocfs2_align_clusters_to_page_index() argument
849 pgoff_t index = clusters; in ocfs2_align_clusters_to_page_index()
852 index = (pgoff_t)clusters >> (PAGE_SHIFT - cbits); in ocfs2_align_clusters_to_page_index()
854 index = (pgoff_t)clusters << (cbits - PAGE_SHIFT); in ocfs2_align_clusters_to_page_index()
880 unsigned int clusters) in ocfs2_clusters_to_megabytes() argument
882 return clusters >> (20 - OCFS2_SB(sb)->s_clustersize_bits); in ocfs2_clusters_to_megabytes()