Lines Matching refs:clusters
712 u32 clusters) in ocfs2_clusters_to_blocks() argument
717 return (u64)clusters << c_to_b_bits; in ocfs2_clusters_to_blocks()
733 unsigned int clusters; in ocfs2_clusters_for_bytes() local
737 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_clusters_for_bytes()
739 return clusters; in ocfs2_clusters_for_bytes()
746 unsigned int clusters; in ocfs2_bytes_to_clusters() local
748 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_bytes_to_clusters()
749 return clusters; in ocfs2_bytes_to_clusters()
760 u32 clusters) in ocfs2_clusters_to_bytes() argument
762 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_to_bytes()
769 unsigned int clusters; in ocfs2_block_to_cluster_start() local
771 clusters = ocfs2_blocks_to_clusters(sb, blocks); in ocfs2_block_to_cluster_start()
772 return (u64)clusters << bits; in ocfs2_block_to_cluster_start()
779 unsigned int clusters; in ocfs2_align_bytes_to_clusters() local
781 clusters = ocfs2_clusters_for_bytes(sb, bytes); in ocfs2_align_bytes_to_clusters()
782 return (u64)clusters << cl_bits; in ocfs2_align_bytes_to_clusters()
802 u32 clusters = pg_index; in ocfs2_page_index_to_clusters() local
806 clusters = pg_index << (PAGE_CACHE_SHIFT - cbits); in ocfs2_page_index_to_clusters()
808 clusters = pg_index >> (cbits - PAGE_CACHE_SHIFT); in ocfs2_page_index_to_clusters()
810 return clusters; in ocfs2_page_index_to_clusters()
817 u32 clusters) in ocfs2_align_clusters_to_page_index() argument
820 pgoff_t index = clusters; in ocfs2_align_clusters_to_page_index()
823 index = (pgoff_t)clusters >> (PAGE_CACHE_SHIFT - cbits); in ocfs2_align_clusters_to_page_index()
825 index = (pgoff_t)clusters << (cbits - PAGE_CACHE_SHIFT); in ocfs2_align_clusters_to_page_index()
851 unsigned int clusters) in ocfs2_clusters_to_megabytes() argument
853 return clusters >> (20 - OCFS2_SB(sb)->s_clustersize_bits); in ocfs2_clusters_to_megabytes()