/linux-6.6.21/fs/udf/ |
D | balloc.c | 48 max_bits = sb->s_blocksize * 8; in read_block_bitmap() 157 bit = block % (sb->s_blocksize << 3); in udf_bitmap_free_blocks() 162 if (bit + count > (sb->s_blocksize << 3)) { in udf_bitmap_free_blocks() 163 overflow = bit + count - (sb->s_blocksize << 3); in udf_bitmap_free_blocks() 219 bit = block % (sb->s_blocksize << 3); in udf_bitmap_prealloc_blocks() 221 while (bit < (sb->s_blocksize << 3) && block_count > 0) { in udf_bitmap_prealloc_blocks() 268 sb->s_blocksize - group_start); in udf_bitmap_new_block() 270 if ((ptr - ((char *)bh->b_data)) < sb->s_blocksize) { in udf_bitmap_new_block() 271 bit = block % (sb->s_blocksize << 3); in udf_bitmap_new_block() 281 sb->s_blocksize - ((bit + 7) >> 3)); in udf_bitmap_new_block() [all …]
|
D | truncate.c | 30 int last_block = (elen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() 32 int first_block = (nelen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() 92 if (lbcount - inode->i_size >= inode->i_sb->s_blocksize) in udf_truncate_tail_extent() 201 (inode->i_size & (sb->s_blocksize - 1)); in udf_truncate_extents() 246 (elen + sb->s_blocksize - 1) >> in udf_truncate_extents()
|
D | inode.c | 518 if (last_ext->extLength & (sb->s_blocksize - 1)) { in udf_do_extend_file() 522 sb->s_blocksize - 1) & ~(sb->s_blocksize - 1)); in udf_do_extend_file() 524 (iinfo->i_lenExtents + sb->s_blocksize - 1) & in udf_do_extend_file() 525 ~(sb->s_blocksize - 1); in udf_do_extend_file() 532 add = (1 << 30) - sb->s_blocksize - in udf_do_extend_file() 570 add = (1 << 30) - sb->s_blocksize; in udf_do_extend_file() 684 (newsize & (sb->s_blocksize - 1)); in udf_extend_file() 763 ((elen + inode->i_sb->s_blocksize - 1) >> in inode_getblk() 782 if (elen & (inode->i_sb->s_blocksize - 1)) { in inode_getblk() 784 ((elen + inode->i_sb->s_blocksize - 1) & in inode_getblk() [all …]
|
D | ialloc.c | 51 iinfo->i_data = kzalloc(inode->i_sb->s_blocksize - in udf_new_inode() 56 iinfo->i_data = kzalloc(inode->i_sb->s_blocksize - in udf_new_inode()
|
/linux-6.6.21/fs/reiserfs/ |
D | resize.c | 69 (reiserfs_bmap_count(s) - 1) * s->s_blocksize * 8; in reiserfs_resize() 72 bmap_nr_new = block_count_new / (s->s_blocksize * 8); in reiserfs_resize() 73 block_r_new = block_count_new - bmap_nr_new * s->s_blocksize * 8; in reiserfs_resize() 77 block_r_new = s->s_blocksize * 8; in reiserfs_resize() 149 bh = sb_bread(s, i * s->s_blocksize * 8); in reiserfs_resize() 193 for (i = block_r; i < s->s_blocksize * 8; i++) in reiserfs_resize() 195 info->free_count += s->s_blocksize * 8 - block_r; in reiserfs_resize() 211 for (i = block_r_new; i < s->s_blocksize * 8; i++) in reiserfs_resize() 216 info->free_count -= s->s_blocksize * 8 - block_r_new; in reiserfs_resize()
|
D | tail_conversion.c | 52 blk_size = sb->s_blocksize; in direct2indirect() 213 unsigned long block_size = sb->s_blocksize; in indirect2direct() 236 1) * sb->s_blocksize; in indirect2direct() 258 1) * sb->s_blocksize; in indirect2direct()
|
D | super.c | 456 set_cpu_key_k_offset(&key, 1 + inode->i_sb->s_blocksize); in add_save_link() 461 1 + inode->i_sb->s_blocksize, TYPE_DIRECT, in add_save_link() 527 1 + inode->i_sb->s_blocksize); in remove_save_link() 1604 bh = sb_bread(s, offset / s->s_blocksize); in read_super_block() 1608 s->s_id, offset / s->s_blocksize, in read_super_block() 1609 s->s_blocksize); in read_super_block() 1625 bh = sb_bread(s, offset / s->s_blocksize); in read_super_block() 1629 s->s_id, offset / s->s_blocksize, in read_super_block() 1630 s->s_blocksize); in read_super_block() 1635 if (sb_blocksize(rs) != s->s_blocksize) { in read_super_block() [all …]
|
/linux-6.6.21/fs/ocfs2/ |
D | ocfs2_fs.h | 1241 return sb->s_blocksize - in ocfs2_fast_symlink_chars() 1251 return sb->s_blocksize - in ocfs2_max_inline_data_with_xattr() 1255 return sb->s_blocksize - in ocfs2_max_inline_data_with_xattr() 1263 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode() 1277 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr() 1281 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr() 1291 size = sb->s_blocksize - in ocfs2_extent_recs_per_dx_root() 1301 size = sb->s_blocksize - in ocfs2_chain_recs_per_inode() 1311 size = sb->s_blocksize - in ocfs2_extent_recs_per_eb() 1321 size = sb->s_blocksize - in ocfs2_extent_recs_per_gd() [all …]
|
D | dir.c | 97 return sb->s_blocksize - sizeof(struct ocfs2_dir_block_trailer); in ocfs2_dir_trailer_blk_off() 312 ((char *) de - bh->b_data) + rlen > dir->i_sb->s_blocksize)) in ocfs2_check_dir_entry() 727 bh->b_data, sb->s_blocksize, in ocfs2_find_entry_el() 969 dir->i_sb->s_blocksize, &dir_ent); in ocfs2_dx_dir_search() 1592 unsigned int size = sb->s_blocksize; in __ocfs2_add_entry() 1817 offset = ctx->pos & (sb->s_blocksize - 1); in ocfs2_dir_foreach_blk_el() 1823 ctx->pos += sb->s_blocksize - offset; in ocfs2_dir_foreach_blk_el() 1850 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ocfs2_dir_foreach_blk_el() 1864 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ocfs2_dir_foreach_blk_el() 1870 && offset < sb->s_blocksize) { in ocfs2_dir_foreach_blk_el() [all …]
|
D | quota_global.c | 137 ocfs2_block_dqtrailer(sb->s_blocksize, bh->b_data); in ocfs2_validate_quota_block() 173 int offset = off & (sb->s_blocksize - 1); in ocfs2_quota_read() 186 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); in ocfs2_quota_read() 222 int offset = off & (sb->s_blocksize - 1); in ocfs2_quota_write() 235 if (len > sb->s_blocksize - OCFS2_QBLK_RESERVED_SPACE - offset) { in ocfs2_quota_write() 237 len = sb->s_blocksize - OCFS2_QBLK_RESERVED_SPACE - offset; in ocfs2_quota_write() 258 if ((offset || len < sb->s_blocksize - OCFS2_QBLK_RESERVED_SPACE) && in ocfs2_quota_write() 274 memset(bh->b_data, 0, sb->s_blocksize); in ocfs2_quota_write() 400 oinfo->dqi_gi.dqi_usable_bs = sb->s_blocksize - in ocfs2_global_read_info()
|
/linux-6.6.21/fs/ext4/ |
D | dir.c | 86 dir->i_sb->s_blocksize); in __ext4_check_dir_entry() 178 offset = ctx->pos & (sb->s_blocksize - 1); in ext4_readdir() 187 ctx->pos += map.m_len * sb->s_blocksize; in ext4_readdir() 211 ctx->pos += sb->s_blocksize - offset; in ext4_readdir() 221 ctx->pos += sb->s_blocksize - offset; in ext4_readdir() 233 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ext4_readdir() 243 sb->s_blocksize) < ext4_dir_rec_len(1, in ext4_readdir() 247 sb->s_blocksize); in ext4_readdir() 250 ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1)) in ext4_readdir() 256 && offset < sb->s_blocksize) { in ext4_readdir() [all …]
|
D | symlink.c | 50 max_size = inode->i_sb->s_blocksize; in ext4_encrypted_get_link() 111 inode->i_sb->s_blocksize - 1); in ext4_get_link()
|
D | migrate.c | 96 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_ind_extent_range() 125 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_dind_extent_range() 155 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_tind_extent_range() 185 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_dind_blocks() 225 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_tind_blocks() 510 max_entries = inode->i_sb->s_blocksize >> 2; in ext4_ext_migrate()
|
/linux-6.6.21/fs/omfs/ |
D | inode.c | 280 buf->f_bsize = sbi->s_blocksize; in omfs_statfs() 345 array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize); in omfs_get_imap() 360 for (count = bitmap_size; count > 0; count -= sb->s_blocksize) { in omfs_get_imap() 364 *ptr = kmemdup(bh->b_data, sb->s_blocksize, GFP_KERNEL); in omfs_get_imap() 369 if (count < sb->s_blocksize) in omfs_get_imap() 371 sb->s_blocksize - count); in omfs_get_imap() 499 sbi->s_blocksize = be32_to_cpu(omfs_sb->s_blocksize); in omfs_fill_super() 517 if (sbi->s_blocksize < sbi->s_sys_blocksize || in omfs_fill_super() 518 sbi->s_blocksize > OMFS_MAX_BLOCK_SIZE) { in omfs_fill_super() 520 sbi->s_blocksize); in omfs_fill_super() [all …]
|
D | bitmap.c | 13 int nbits = sb->s_blocksize * 8; in omfs_count_free() 95 int bits_per_entry = 8 * sb->s_blocksize; in omfs_allocate_block() 137 int bits_per_entry = 8 * sb->s_blocksize; in omfs_allocate_range() 178 int bits_per_entry = 8 * sb->s_blocksize; in omfs_clear_range()
|
/linux-6.6.21/fs/affs/ |
D | bitmap.c | 184 enddata = (__be32 *)((u8 *)bh->b_data + sb->s_blocksize); in affs_alloc_block() 264 sbi->s_bmap_bits = sb->s_blocksize * 8 - 32; in affs_init_bitmap() 275 blk = sb->s_blocksize / 4 - 49; in affs_init_bitmap() 295 bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4); in affs_init_bitmap() 312 end = sb->s_blocksize / 4 - 1; in affs_init_bitmap() 337 while (++offset < sb->s_blocksize / 4) in affs_init_bitmap() 345 bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4); in affs_init_bitmap()
|
/linux-6.6.21/fs/freevxfs/ |
D | vxfs_olt.c | 35 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock() 36 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock() 81 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
|
D | vxfs_lookup.c | 25 #define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_SIZE / (sbp)->s_blocksize)) 59 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry() 195 u_long bsize = sbp->s_blocksize; in vxfs_readdir()
|
/linux-6.6.21/fs/minix/ |
D | bitmap.c | 74 int bits_per_zone = 8 * inode->i_sb->s_blocksize; in minix_new_block() 102 return (count_free(sbi->s_zmap, sb->s_blocksize, bits) in minix_count_free_blocks() 136 int minix2_inodes_per_block = sb->s_blocksize / sizeof(struct minix2_inode); in minix_V2_raw_inode() 219 int bits_per_zone = 8 * sb->s_blocksize; in minix_new_inode() 268 return count_free(sbi->s_imap, sb->s_blocksize, bits); in minix_count_free_inodes()
|
D | itree_common.c | 312 iblock = (inode->i_size + sb->s_blocksize -1) >> sb->s_blocksize_bits; in truncate() 361 blocks = (size + sb->s_blocksize - 1) >> (BLOCK_SIZE_BITS + k); in nblocks() 365 blocks += sb->s_blocksize/sizeof(block_t) - 1; in nblocks() 366 blocks /= sb->s_blocksize/sizeof(block_t); in nblocks()
|
/linux-6.6.21/include/linux/ |
D | buffer_head.h | 326 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_bread() 332 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_bread_unmovable() 338 __breadahead(sb->s_bdev, block, sb->s_blocksize); in sb_breadahead() 344 return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_getblk() 351 return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, gfp); in sb_getblk_gfp() 357 return __find_get_block(sb->s_bdev, block, sb->s_blocksize); in sb_find_get_block() 366 bh->b_size = sb->s_blocksize; in map_bh()
|
/linux-6.6.21/fs/jfs/ |
D | xattr.c | 225 nblocks = (size + (sb->s_blocksize - 1)) >> sb->s_blocksize_bits; in ea_write() 253 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_write() 393 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_read() 473 current_blocks = (ea_size + sb->s_blocksize - 1) >> in ea_get() 484 ea_buf->max_size = (size + sb->s_blocksize - 1) & in ea_get() 485 ~(sb->s_blocksize - 1); in ea_get() 503 blocks_needed = (min_size + sb->s_blocksize - 1) >> in ea_get() 535 ea_buf->max_size = (min_size + sb->s_blocksize - 1) & in ea_get() 536 ~(sb->s_blocksize - 1); in ea_get() 555 ea_buf->max_size = (ea_size + sb->s_blocksize - 1) & in ea_get() [all …]
|
/linux-6.6.21/fs/adfs/ |
D | dir.c | 24 offset &= sb->s_blocksize - 1; in adfs_dir_copyfrom() 25 remain = sb->s_blocksize - offset; in adfs_dir_copyfrom() 49 offset &= sb->s_blocksize - 1; in adfs_dir_copyto() 50 remain = sb->s_blocksize - offset; in adfs_dir_copyto() 104 num = ALIGN(size, sb->s_blocksize) >> sb->s_blocksize_bits; in adfs_dir_read_buffers()
|
/linux-6.6.21/fs/ext2/ |
D | super.c | 673 EXT2FS_VERSION, EXT2FS_DATE, sb->s_blocksize, in ext2_setup_super() 968 if (sb->s_blocksize != blocksize) { in ext2_fill_super() 1017 sbi->s_inodes_per_block = sb->s_blocksize / EXT2_INODE_SIZE(sb); in ext2_fill_super() 1022 sbi->s_desc_per_block = sb->s_blocksize / in ext2_fill_super() 1034 if (sb->s_blocksize != bh->b_size) { in ext2_fill_super() 1047 if (sbi->s_blocks_per_group > sb->s_blocksize * 8) { in ext2_fill_super() 1061 sbi->s_inodes_per_group > sb->s_blocksize * 8) { in ext2_fill_super() 1457 buf->f_bsize = sb->s_blocksize; in ext2_statfs() 1491 int offset = off & (sb->s_blocksize - 1); in ext2_quota_read() 1504 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in ext2_quota_read() [all …]
|
/linux-6.6.21/fs/hfs/ |
D | mdb.c | 190 off2 = off & (sb->s_blocksize - 1); in hfs_mdb_get() 191 len = min((int)sb->s_blocksize - off2, size); in hfs_mdb_get() 313 off = (block << HFS_SECTOR_SIZE_BITS) & (sb->s_blocksize - 1); in hfs_mdb_commit() 323 len = min((int)sb->s_blocksize - off, size); in hfs_mdb_commit()
|