Searched refs:new_blocks (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/fs/ext2/ |
D | inode.c | 401 ext2_fsblk_t new_blocks[4], int *err) in ext2_alloc_blocks() 429 new_blocks[index++] = current_block++; in ext2_alloc_blocks() 438 new_blocks[index] = current_block; in ext2_alloc_blocks() 446 ext2_free_blocks(inode, new_blocks[i], 1); in ext2_alloc_blocks() 488 ext2_fsblk_t new_blocks[4]; in ext2_alloc_branch() local 492 *blks, new_blocks, &err); in ext2_alloc_branch() 496 branch[0].key = cpu_to_le32(new_blocks[0]); in ext2_alloc_branch() 506 bh = sb_getblk(inode->i_sb, new_blocks[n-1]); in ext2_alloc_branch() 515 branch[n].key = cpu_to_le32(new_blocks[n]); in ext2_alloc_branch() 518 current_block = new_blocks[n]; in ext2_alloc_branch() [all …]
|
/linux-6.6.21/arch/powerpc/lib/ |
D | rheap.c | 48 int i, new_blocks; in grow() local 55 new_blocks = max_blocks - info->max_blocks; in grow() 86 info->empty_slots += new_blocks; in grow() 91 blk = block + info->max_blocks - new_blocks; in grow() 92 for (i = 0; i < new_blocks; i++, blk++) in grow()
|
/linux-6.6.21/fs/ext4/ |
D | indirect.c | 334 ext4_fsblk_t b, new_blocks[4]; in ext4_alloc_branch() local 340 new_blocks[i] = ext4_mb_new_blocks(handle, ar, &err); in ext4_alloc_branch() 342 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch() 353 branch[i].key = cpu_to_le32(new_blocks[i]); in ext4_alloc_branch() 357 bh = branch[i].bh = sb_getblk(ar->inode->i_sb, new_blocks[i-1]); in ext4_alloc_branch() 373 b = new_blocks[i]; in ext4_alloc_branch() 393 ext4_free_blocks(handle, ar->inode, NULL, new_blocks[i], in ext4_alloc_branch() 408 new_blocks[i], 1, in ext4_alloc_branch()
|
/linux-6.6.21/drivers/md/persistent-data/ |
D | dm-bitset.c | 91 uint32_t new_blocks = dm_div_up(new_nr_entries, BITS_PER_ARRAY_ENTRY); in dm_bitset_resize() local 95 return dm_array_resize(&info->array_info, root, old_blocks, new_blocks, in dm_bitset_resize()
|
/linux-6.6.21/fs/jfs/ |
D | xattr.c | 596 unsigned long old_blocks, new_blocks; in ea_put() local 623 old_blocks = new_blocks = 0; in ea_put() 633 new_blocks = lengthDXD(&ea_buf->new_ea); in ea_put()
|
/linux-6.6.21/drivers/md/ |
D | md-bitmap.c | 2141 sector_t old_blocks, new_blocks; in md_bitmap_resize() local 2268 bmc_new = md_bitmap_get_counter(&bitmap->counts, block, &new_blocks, 1); in md_bitmap_resize() 2272 sector_t end = block + new_blocks; in md_bitmap_resize() 2286 if (new_blocks < old_blocks) in md_bitmap_resize() 2287 old_blocks = new_blocks; in md_bitmap_resize() 2304 bmc = md_bitmap_get_counter(&bitmap->counts, block, &new_blocks, 1); in md_bitmap_resize() 2315 block += new_blocks; in md_bitmap_resize()
|
/linux-6.6.21/fs/ocfs2/ |
D | alloc.c | 1150 int status, new_blocks, i, block_given = 0; in ocfs2_add_branch() local 1170 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch() 1197 new_eb_bhs = kcalloc(new_blocks, sizeof(struct buffer_head *), in ocfs2_add_branch() 1210 new_eb_bhs, new_blocks, in ocfs2_add_branch() 1218 BUG_ON(block_given > new_blocks); in ocfs2_add_branch() 1220 if (block_given < new_blocks) { in ocfs2_add_branch() 1223 new_blocks - block_given, in ocfs2_add_branch() 1240 for(i = 0; i < new_blocks; i++) { in ocfs2_add_branch() 1334 for (i = 0; i < new_blocks; i++) in ocfs2_add_branch()
|