diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-06-16 16:41:49 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-07-06 10:44:08 -0700 |
commit | ad4edb83143fdeef9e6fdd9daaa735b59476565b (patch) | |
tree | c2691e320b927f9dce1ae9df62875f3123f908d9 /fs/f2fs/f2fs.h | |
parent | 52763a4b7a2112743745c5bbfe43fe6f54d4b39a (diff) | |
download | op-kernel-dev-ad4edb83143fdeef9e6fdd9daaa735b59476565b.zip op-kernel-dev-ad4edb83143fdeef9e6fdd9daaa735b59476565b.tar.gz |
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/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index b3aeb58..32884a7 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1965,6 +1965,7 @@ void move_node_page(struct page *, int); int fsync_node_pages(struct f2fs_sb_info *, struct inode *, struct writeback_control *, bool); int sync_node_pages(struct f2fs_sb_info *, struct writeback_control *); +void build_free_nids(struct f2fs_sb_info *); bool alloc_nid(struct f2fs_sb_info *, nid_t *); void alloc_nid_done(struct f2fs_sb_info *, nid_t); void alloc_nid_failed(struct f2fs_sb_info *, nid_t); |