summaryrefslogtreecommitdiff
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-05-17 16:23:36 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2016-05-18 13:57:25 -0700
commitf573018491fd823e909d587cfe16758f3dd9e6d6 (patch)
treed104b13e1c54d116cf83b532b221e3906ac6c0c1 /fs/f2fs/super.c
parent10aa97c379cdd1e9f537a00ef2d787989759269d (diff)
f2fs: use bio count instead of F2FS_WRITEBACK page count
This can reduce page counting overhead. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 9df6d72ff1a1..0e175609cf72 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -649,8 +649,7 @@ static void f2fs_put_super(struct super_block *sb)
mutex_unlock(&sbi->umount_mutex);
/* our cp_error case, we can wait for any writeback page */
- if (get_pages(sbi, F2FS_WRITEBACK))
- f2fs_flush_merged_bios(sbi);
+ f2fs_flush_merged_bios(sbi);
iput(sbi->node_inode);
iput(sbi->meta_inode);