diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-07 22:23:12 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-08 20:45:22 +0100 |
commit | 12719ae14e57980ebf0a7baa63bc80494c76b192 (patch) | |
tree | 3eaf9696743ec4b17e35f79cb4c1f39db3f7b6a8 /fs/f2fs/super.c | |
parent | f2fs: check the page status filled from disk (diff) | |
download | linux-12719ae14e57980ebf0a7baa63bc80494c76b192.tar.xz linux-12719ae14e57980ebf0a7baa63bc80494c76b192.zip |
f2fs: avoid unnecessary f2fs_balance_fs calls
Only when node page is newly dirtied, it needs to check whether we need to do
f2fs_gc.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r-- | fs/f2fs/super.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 0bbd756821a7..f5cc790646e2 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -591,8 +591,6 @@ int f2fs_sync_fs(struct super_block *sb, int sync) mutex_lock(&sbi->gc_mutex); err = write_checkpoint(sbi, &cpc); mutex_unlock(&sbi->gc_mutex); - } else { - f2fs_balance_fs(sbi); } f2fs_trace_ios(NULL, 1); |