diff options
author | Chao Yu <chao2.yu@samsung.com> | 2013-11-20 14:46:39 +0800 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2015-05-02 14:35:37 +0200 |
commit | d5d8771237bdafdd566a0f25f4d04f6ddd765393 (patch) | |
tree | 178e80f2ce11d3544539230f66ef0fc3c9963d03 /fs/f2fs/f2fs.h | |
parent | cd749687d0a302bb1cc51a1cc9c765f001559367 (diff) | |
download | kernel_samsung_tuna-d5d8771237bdafdd566a0f25f4d04f6ddd765393.zip kernel_samsung_tuna-d5d8771237bdafdd566a0f25f4d04f6ddd765393.tar.gz kernel_samsung_tuna-d5d8771237bdafdd566a0f25f4d04f6ddd765393.tar.bz2 |
f2fs: add a new function to support for merging contiguous read
For better read performance, we add a new function to support for merging
contiguous read as the one for write.
v1-->v2:
o add declarations here as Gu Zheng suggested.
o use new structure f2fs_bio_info introduced by Jaegeuk Kim.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Acked-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 95de042..d72579a 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -382,6 +382,7 @@ struct f2fs_sb_info { struct f2fs_sm_info *sm_info; /* segment manager */ /* for bio operations */ + struct f2fs_bio_info read_io; /* for read bios */ struct f2fs_bio_info write_io[NR_PAGE_TYPE]; /* for write bios */ /* for checkpoint */ @@ -1132,6 +1133,8 @@ struct page *find_data_page(struct inode *, pgoff_t, bool); struct page *get_lock_data_page(struct inode *, pgoff_t); struct page *get_new_data_page(struct inode *, struct page *, pgoff_t, bool); int f2fs_readpage(struct f2fs_sb_info *, struct page *, block_t, int); +void f2fs_submit_read_bio(struct f2fs_sb_info *, int); +void submit_read_page(struct f2fs_sb_info *, struct page *, block_t, int); int do_write_data_page(struct page *); /* |