Home
last modified time | relevance | path

Searched refs:cbits (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/fs/ocfs2/
Docfs2.h819 unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_page_index_to_clusters() local
821 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() local
838 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 …]
Dsuper.c570 unsigned int cbits) in ocfs2_max_file_offset() argument
572 unsigned int bytes = 1 << cbits; in ocfs2_max_file_offset()
1998 int i, cbits, bbits; in ocfs2_initialize_super() local
2023 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()