Home
last modified time | relevance | path

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

/linux-4.1.27/fs/ext2/
Dinode.c396 ext2_fsblk_t new_blocks[4], int *err) in ext2_alloc_blocks()
424 new_blocks[index++] = current_block++; in ext2_alloc_blocks()
433 new_blocks[index] = current_block; in ext2_alloc_blocks()
441 ext2_free_blocks(inode, new_blocks[i], 1); in ext2_alloc_blocks()
481 ext2_fsblk_t new_blocks[4]; in ext2_alloc_branch() local
485 *blks, new_blocks, &err); in ext2_alloc_branch()
489 branch[0].key = cpu_to_le32(new_blocks[0]); in ext2_alloc_branch()
499 bh = sb_getblk(inode->i_sb, new_blocks[n-1]); in ext2_alloc_branch()
508 branch[n].key = cpu_to_le32(new_blocks[n]); in ext2_alloc_branch()
511 current_block = new_blocks[n]; in ext2_alloc_branch()
[all …]
/linux-4.1.27/drivers/md/persistent-data/
Ddm-bitset.c47 uint32_t new_blocks = dm_div_up(new_nr_entries, BITS_PER_ARRAY_ENTRY); in dm_bitset_resize() local
51 return dm_array_resize(&info->array_info, root, old_blocks, new_blocks, in dm_bitset_resize()
/linux-4.1.27/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-4.1.27/fs/ext4/
Dindirect.c327 ext4_fsblk_t b, new_blocks[4]; in ext4_alloc_branch() local
333 new_blocks[i] = ext4_mb_new_blocks(handle, ar, &err); in ext4_alloc_branch()
335 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch()
343 branch[i].key = cpu_to_le32(new_blocks[i]); in ext4_alloc_branch()
347 bh = branch[i].bh = sb_getblk(ar->inode->i_sb, new_blocks[i-1]); in ext4_alloc_branch()
362 b = new_blocks[i]; in ext4_alloc_branch()
390 ext4_free_blocks(handle, ar->inode, NULL, new_blocks[i], in ext4_alloc_branch()
/linux-4.1.27/fs/ext3/
Dinode.c577 ext3_fsblk_t new_blocks[4], int *err) in ext3_alloc_blocks()
605 new_blocks[index++] = current_block++; in ext3_alloc_blocks()
614 new_blocks[index] = current_block; in ext3_alloc_blocks()
622 ext3_free_blocks(handle, inode, new_blocks[i], 1); in ext3_alloc_blocks()
662 ext3_fsblk_t new_blocks[4]; in ext3_alloc_branch() local
666 *blks, new_blocks, &err); in ext3_alloc_branch()
670 branch[0].key = cpu_to_le32(new_blocks[0]); in ext3_alloc_branch()
680 bh = sb_getblk(inode->i_sb, new_blocks[n-1]); in ext3_alloc_branch()
697 branch[n].key = cpu_to_le32(new_blocks[n]); in ext3_alloc_branch()
700 current_block = new_blocks[n]; in ext3_alloc_branch()
[all …]
/linux-4.1.27/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-4.1.27/drivers/md/
Dbitmap.c1962 sector_t old_blocks, new_blocks; in bitmap_resize() local
2053 &new_blocks, 1); in bitmap_resize()
2056 sector_t end = block + new_blocks; in bitmap_resize()
2070 if (new_blocks < old_blocks) in bitmap_resize()
2071 old_blocks = new_blocks; in bitmap_resize()
2081 &new_blocks, 1); in bitmap_resize()
2094 block += new_blocks; in bitmap_resize()
/linux-4.1.27/fs/ocfs2/
Dalloc.c1163 int status, new_blocks, i; in ocfs2_add_branch() local
1183 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch()
1210 new_eb_bhs = kcalloc(new_blocks, sizeof(struct buffer_head *), in ocfs2_add_branch()
1218 status = ocfs2_create_new_meta_bhs(handle, et, new_blocks, in ocfs2_add_branch()
1233 for(i = 0; i < new_blocks; i++) { in ocfs2_add_branch()
1327 for (i = 0; i < new_blocks; i++) in ocfs2_add_branch()