Home
last modified time | relevance | path

Searched refs:ptrs_bits (Results 1 – 4 of 4) sorted by relevance

/linux-6.6.21/fs/sysv/
Ditree.c27 int ptrs_bits = sbi->s_ind_per_block_bits; in block_to_path() local
41 offsets[n++] = block >> ptrs_bits; in block_to_path()
43 } else if (((block -= double_blocks) >> (ptrs_bits * 2)) < indirect_blocks) { in block_to_path()
45 offsets[n++] = block >> (ptrs_bits * 2); in block_to_path()
46 offsets[n++] = (block >> ptrs_bits) & (indirect_blocks - 1); in block_to_path()
436 int ptrs_bits = sbi->s_ind_per_block_bits; in sysv_nblocks() local
441 blocks = ((blocks - direct - 1) >> ptrs_bits) + 1; in sysv_nblocks()
/linux-6.6.21/fs/ext4/
Dindirect.c79 int ptrs_bits = EXT4_ADDR_PER_BLOCK_BITS(inode->i_sb); in ext4_block_to_path() local
82 double_blocks = (1 << (ptrs_bits * 2)); in ext4_block_to_path()
95 offsets[n++] = i_block >> ptrs_bits; in ext4_block_to_path()
98 } else if (((i_block -= double_blocks) >> (ptrs_bits * 2)) < ptrs) { in ext4_block_to_path()
100 offsets[n++] = i_block >> (ptrs_bits * 2); in ext4_block_to_path()
101 offsets[n++] = (i_block >> ptrs_bits) & (ptrs - 1); in ext4_block_to_path()
/linux-6.6.21/fs/ext2/
Dinode.c167 int ptrs_bits = EXT2_ADDR_PER_BLOCK_BITS(inode->i_sb); in ext2_block_to_path() local
170 double_blocks = (1 << (ptrs_bits * 2)); in ext2_block_to_path()
186 offsets[n++] = i_block >> ptrs_bits; in ext2_block_to_path()
189 } else if (((i_block -= double_blocks) >> (ptrs_bits * 2)) < ptrs) { in ext2_block_to_path()
191 offsets[n++] = i_block >> (ptrs_bits * 2); in ext2_block_to_path()
192 offsets[n++] = (i_block >> ptrs_bits) & (ptrs - 1); in ext2_block_to_path()
/linux-6.6.21/fs/ufs/
Dinode.c50 int ptrs_bits = uspi->s_apbshift; in ufs_block_to_path() local
53 double_blocks = (1 << (ptrs_bits * 2)); in ufs_block_to_path()
65 offsets[n++] = i_block >> ptrs_bits; in ufs_block_to_path()
67 } else if (((i_block -= double_blocks) >> (ptrs_bits * 2)) < ptrs) { in ufs_block_to_path()
69 offsets[n++] = i_block >> (ptrs_bits * 2); in ufs_block_to_path()
70 offsets[n++] = (i_block >> ptrs_bits) & (ptrs - 1); in ufs_block_to_path()