diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-06-17 02:41:49 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-07-06 20:44:08 +0300 |
commit | ad4edb83143fdeef9e6fdd9daaa735b59476565b (patch) | |
tree | c2691e320b927f9dce1ae9df62875f3123f908d9 /fs/f2fs/checkpoint.c | |
parent | 52763a4b7a2112743745c5bbfe43fe6f54d4b39a (diff) | |
download | linux-ad4edb83143fdeef9e6fdd9daaa735b59476565b.tar.xz |
f2fs: produce more nids and reduce readahead nats
The readahead nat pages are more likely to be reclaimed quickly, so it'd better
to gather more free nids in advance.
And, let's keep some free nids as much as possible.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 8534b98c0712..2b43d4013e92 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -941,6 +941,8 @@ out: static void unblock_operations(struct f2fs_sb_info *sbi) { up_write(&sbi->node_write); + + build_free_nids(sbi); f2fs_unlock_all(sbi); } |