diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-17 16:23:36 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-18 13:57:25 -0700 |
commit | f573018491fd823e909d587cfe16758f3dd9e6d6 (patch) | |
tree | d104b13e1c54d116cf83b532b221e3906ac6c0c1 /fs/f2fs/super.c | |
parent | 10aa97c379cdd1e9f537a00ef2d787989759269d (diff) | |
download | op-kernel-dev-f573018491fd823e909d587cfe16758f3dd9e6d6.zip op-kernel-dev-f573018491fd823e909d587cfe16758f3dd9e6d6.tar.gz |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 9df6d72..0e17560 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); |