diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-30 17:00:33 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-28 15:41:37 -0700 |
commit | 43f3eae1d3b1de6a4f7e39ef9c363ec6f8b9c8d4 (patch) | |
tree | 32f273bfd14351cf7350a79d080483db76a7cf31 /fs/f2fs/f2fs.h | |
parent | 2fb2c954968bedddfeb3895969fbdf2ae0679ed3 (diff) | |
download | lwn-43f3eae1d3b1de6a4f7e39ef9c363ec6f8b9c8d4.tar.gz lwn-43f3eae1d3b1de6a4f7e39ef9c363ec6f8b9c8d4.zip |
f2fs: split find_data_page according to specific purposes
This patch splits find_data_page as follows.
1. f2fs_gc
- use get_read_data_page() with read only
2. find_in_level
- use find_data_page without locked page
3. truncate_partial_page
- In the case cache_only mode, just drop cached page.
- Ohterwise, use get_lock_data_page() and guarantee to truncate
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 9e43ddcdba84..78a430028f1d 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1675,7 +1675,8 @@ void f2fs_destroy_extent_tree(struct inode *); void f2fs_init_extent_cache(struct inode *, struct f2fs_extent *); void f2fs_update_extent_cache(struct dnode_of_data *); void f2fs_preserve_extent_tree(struct inode *); -struct page *find_data_page(struct inode *, pgoff_t, bool); +struct page *get_read_data_page(struct inode *, pgoff_t, int); +struct page *find_data_page(struct inode *, pgoff_t); struct page *get_lock_data_page(struct inode *, pgoff_t); struct page *get_new_data_page(struct inode *, struct page *, pgoff_t, bool); int do_write_data_page(struct f2fs_io_info *); |