[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1438944689-24562-6-git-send-email-jack@suse.com>
Date: Fri, 7 Aug 2015 12:51:15 +0200
From: Jan Kara <jack@...e.com>
To: linux-ext4@...r.kernel.org
Cc: Ted Tso <tytso@....edu>,
"Darrick J. Wong" <darrick.wong@...cle.com>,
Jan Kara <jack@...e.com>
Subject: [PATCH 05/19] resize2fs: Use ext2fs_allocate_group_table2()
Signed-off-by: Jan Kara <jack@...e.com>
---
resize/resize2fs.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/resize/resize2fs.c b/resize/resize2fs.c
index 02f7d754d316..9d21cebe16aa 100644
--- a/resize/resize2fs.c
+++ b/resize/resize2fs.c
@@ -1448,8 +1448,10 @@ static errcode_t blocks_to_move(ext2_resize_t rfs)
ext2fs_block_bitmap_loc(fs, i))
continue;
- retval = ext2fs_allocate_group_table(fs, i,
- rfs->reserve_blocks);
+ retval = ext2fs_allocate_group_table2(fs, i,
+ rfs->reserve_blocks,
+ EXT2FS_ALLOC_TABLE_UPDATE_STATS |
+ EXT2FS_ALLOC_TABLE_SET_BLOCK_BITMAP);
if (retval)
goto errout;
@@ -1459,7 +1461,6 @@ static errcode_t blocks_to_move(ext2_resize_t rfs)
*/
if (ext2fs_block_bitmap_loc(old_fs, i) !=
(blk = ext2fs_block_bitmap_loc(fs, i))) {
- ext2fs_block_alloc_stats2(fs, blk, +1);
if (ext2fs_test_block_bitmap2(old_fs->block_map, blk) &&
!ext2fs_test_block_bitmap2(meta_bmap, blk))
ext2fs_mark_block_bitmap2(rfs->move_blocks,
@@ -1467,7 +1468,6 @@ static errcode_t blocks_to_move(ext2_resize_t rfs)
}
if (ext2fs_inode_bitmap_loc(old_fs, i) !=
(blk = ext2fs_inode_bitmap_loc(fs, i))) {
- ext2fs_block_alloc_stats2(fs, blk, +1);
if (ext2fs_test_block_bitmap2(old_fs->block_map, blk) &&
!ext2fs_test_block_bitmap2(meta_bmap, blk))
ext2fs_mark_block_bitmap2(rfs->move_blocks,
@@ -1493,7 +1493,6 @@ static errcode_t blocks_to_move(ext2_resize_t rfs)
*/
for (blk = ext2fs_inode_table_loc(fs, i), j=0;
j < fs->inode_blocks_per_group ; j++, blk++) {
- ext2fs_block_alloc_stats2(fs, blk, +1);
if (ext2fs_test_block_bitmap2(old_fs->block_map, blk) &&
!ext2fs_test_block_bitmap2(meta_bmap, blk))
ext2fs_mark_block_bitmap2(rfs->move_blocks,
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists