Searched refs:cbits (Results 1 – 2 of 2) sorted by relevance
819 unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_page_index_to_clusters() local821 if (unlikely(PAGE_SHIFT > cbits)) in ocfs2_page_index_to_clusters()822 clusters = pg_index << (PAGE_SHIFT - cbits); in ocfs2_page_index_to_clusters()823 else if (PAGE_SHIFT < cbits) in ocfs2_page_index_to_clusters()824 clusters = pg_index >> (cbits - PAGE_SHIFT); in ocfs2_page_index_to_clusters()835 unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_align_clusters_to_page_index() local838 if (PAGE_SHIFT > cbits) { in ocfs2_align_clusters_to_page_index()839 index = (pgoff_t)clusters >> (PAGE_SHIFT - cbits); in ocfs2_align_clusters_to_page_index()840 } else if (PAGE_SHIFT < cbits) { in ocfs2_align_clusters_to_page_index()841 index = (pgoff_t)clusters << (cbits - PAGE_SHIFT); in ocfs2_align_clusters_to_page_index()[all …]
570 unsigned int cbits) in ocfs2_max_file_offset() argument572 unsigned int bytes = 1 << cbits; in ocfs2_max_file_offset()1998 int i, cbits, bbits; in ocfs2_initialize_super() local2023 cbits = le32_to_cpu(di->id2.i_super.s_clustersize_bits); in ocfs2_initialize_super()2025 sb->s_maxbytes = ocfs2_max_file_offset(bbits, cbits); in ocfs2_initialize_super()2029 osb->osb_dx_mask = (1 << (cbits - bbits)) - 1; in ocfs2_initialize_super()