f2fs: support lower priority asynchronous readahead in ra_meta_pages
authorChao Yu <chao2.yu@samsung.com>
Mon, 12 Oct 2015 09:05:59 +0000 (17:05 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 12 Oct 2015 21:03:15 +0000 (14:03 -0700)
commit26879fb101f28c554294eaf25ac7817a2825b180
tree06eef8e5fc29c7dd5638cf2f78cd0bcc46575d79
parent2b947003fa98d5a39f3b21214380d0b1daf750b5
f2fs: support lower priority asynchronous readahead in ra_meta_pages

Now, we use ra_meta_pages to reads continuous physical blocks as much as
possible to improve performance of following reads. However, ra_meta_pages
uses a synchronous readahead approach by submitting bio with READ, as READ
is with high priority, it can not be used in the case of preloading blocks,
and it's not sure when these RAed pages will be used.

This patch supports asynchronous readahead in ra_meta_pages by tagging bio
with READA flag in order to allow preloading.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/node.c
fs/f2fs/recovery.c
fs/f2fs/segment.c