Home
last modified time | relevance | path

Searched refs:new_blocks (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/fs/ext2/
Dinode.c400 ext2_fsblk_t new_blocks[4], int *err) in ext2_alloc_blocks()
428 new_blocks[index++] = current_block++; in ext2_alloc_blocks()
437 new_blocks[index] = current_block; in ext2_alloc_blocks()
445 ext2_free_blocks(inode, new_blocks[i], 1); in ext2_alloc_blocks()
485 ext2_fsblk_t new_blocks[4]; in ext2_alloc_branch() local
489 *blks, new_blocks, &err); in ext2_alloc_branch()
493 branch[0].key = cpu_to_le32(new_blocks[0]); in ext2_alloc_branch()
503 bh = sb_getblk(inode->i_sb, new_blocks[n-1]); in ext2_alloc_branch()
512 branch[n].key = cpu_to_le32(new_blocks[n]); in ext2_alloc_branch()
515 current_block = new_blocks[n]; in ext2_alloc_branch()
[all …]
/Linux-v4.19/arch/powerpc/lib/
Drheap.c48 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-v4.19/fs/ext4/
Dindirect.c329 ext4_fsblk_t b, new_blocks[4]; in ext4_alloc_branch() local
335 new_blocks[i] = ext4_mb_new_blocks(handle, ar, &err); in ext4_alloc_branch()
337 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch()
345 branch[i].key = cpu_to_le32(new_blocks[i]); in ext4_alloc_branch()
349 bh = branch[i].bh = sb_getblk(ar->inode->i_sb, new_blocks[i-1]); in ext4_alloc_branch()
364 b = new_blocks[i]; in ext4_alloc_branch()
392 ext4_free_blocks(handle, ar->inode, NULL, new_blocks[i], in ext4_alloc_branch()
/Linux-v4.19/drivers/md/persistent-data/
Ddm-bitset.c89 uint32_t new_blocks = dm_div_up(new_nr_entries, BITS_PER_ARRAY_ENTRY); in dm_bitset_resize() local
93 return dm_array_resize(&info->array_info, root, old_blocks, new_blocks, in dm_bitset_resize()
/Linux-v4.19/fs/jfs/
Dxattr.c609 unsigned long old_blocks, new_blocks; in ea_put() local
636 old_blocks = new_blocks = 0; in ea_put()
646 new_blocks = lengthDXD(&ea_buf->new_ea); in ea_put()
/Linux-v4.19/drivers/md/
Dmd-bitmap.c2063 sector_t old_blocks, new_blocks; in md_bitmap_resize() local
2189 bmc_new = md_bitmap_get_counter(&bitmap->counts, block, &new_blocks, 1); in md_bitmap_resize()
2192 sector_t end = block + new_blocks; in md_bitmap_resize()
2204 if (new_blocks < old_blocks) in md_bitmap_resize()
2205 old_blocks = new_blocks; in md_bitmap_resize()
2222 bmc = md_bitmap_get_counter(&bitmap->counts, block, &new_blocks, 1); in md_bitmap_resize()
2233 block += new_blocks; in md_bitmap_resize()
/Linux-v4.19/fs/ocfs2/
Dalloc.c1167 int status, new_blocks, i, block_given = 0; in ocfs2_add_branch() local
1187 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch()
1214 new_eb_bhs = kcalloc(new_blocks, sizeof(struct buffer_head *), in ocfs2_add_branch()
1227 new_eb_bhs, new_blocks, in ocfs2_add_branch()
1235 BUG_ON(block_given > new_blocks); in ocfs2_add_branch()
1237 if (block_given < new_blocks) { in ocfs2_add_branch()
1240 new_blocks - block_given, in ocfs2_add_branch()
1257 for(i = 0; i < new_blocks; i++) { in ocfs2_add_branch()
1351 for (i = 0; i < new_blocks; i++) in ocfs2_add_branch()