diff options
author | Wang Shilong | 2013-12-13 18:30:44 +0800 |
---|---|---|
committer | Chris Mason | 2014-01-28 13:19:57 -0800 |
commit | 54eb72c05f7731b4b148da47419b90a5f2108036 (patch) | |
tree | 68bace81c23e7d347cd05f83c701f73c0c0fb0cf /fs | |
parent | 5662344b3c0d9ddd9afd48716d795166f982d5e2 (diff) |
Btrfs: remove unnecessary filemap writting and waiting after block group relocation
We have commited transaction before, remove redundant filemap writting and
waiting here, it can speed up balance relocation process.
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/relocation.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 63708f77c8e0..d8a82b849987 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -4283,11 +4283,6 @@ int btrfs_relocate_block_group(struct btrfs_root *extent_root, u64 group_start) } } - filemap_write_and_wait_range(fs_info->btree_inode->i_mapping, - rc->block_group->key.objectid, - rc->block_group->key.objectid + - rc->block_group->key.offset - 1); - WARN_ON(rc->block_group->pinned > 0); WARN_ON(rc->block_group->reserved > 0); WARN_ON(btrfs_block_group_used(&rc->block_group->item) > 0); |