diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-10-20 03:27:56 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-23 21:11:09 +0100 |
commit | 18340edc8da20b0d399eb25ba4bb631b27652f46 (patch) | |
tree | 74d27396c2f5be10db454f003cc263fdb51aa11c /fs/f2fs/inode.c | |
parent | f2fs: keep dirty inodes selectively for checkpoint (diff) | |
download | linux-18340edc8da20b0d399eb25ba4bb631b27652f46.tar.xz linux-18340edc8da20b0d399eb25ba4bb631b27652f46.zip |
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; } |