diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-10-19 18:27:56 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-23 12:11:09 -0800 |
commit | 18340edc8da20b0d399eb25ba4bb631b27652f46 (patch) | |
tree | 74d27396c2f5be10db454f003cc263fdb51aa11c /fs/f2fs/inode.c | |
parent | 7c45729a4d6d1c90879e6c5c2df325c2f6db7191 (diff) | |
download | linux-18340edc8da20b0d399eb25ba4bb631b27652f46.tar.bz2 |
f2fs: make clean inodes when flushing inode page
This patch tries to make more clean inodes when flushing dirty inodes in
checkpoint.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inode.c')
-rw-r--r-- | fs/f2fs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index bfa512dde4ab..7b5e402f0a72 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -339,7 +339,7 @@ int f2fs_write_inode(struct inode *inode, struct writeback_control *wbc) * We need to balance fs here to prevent from producing dirty node pages * during the urgent cleaning time when runing out of free sections. */ - if (update_inode_page(inode)) + if (update_inode_page(inode) && wbc && wbc->nr_to_write) f2fs_balance_fs(sbi, true); return 0; } |