f2fs: assign REQ_RAHEAD to bio for ->readpages
commite2e59414aae2c8036dfaa57cf6a578e1694945e8
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 21 Jun 2018 18:29:43 +0000 (21 11:29 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 27 Jul 2018 09:03:59 +0000 (27 18:03 +0900)
tree0f6fd32136fac3528728025b63554475100308c5
parent2a63531a612f776ea754fee6272fc8f16a06b9d6
f2fs: assign REQ_RAHEAD to bio for ->readpages

As Jens reported, we'd better assign REQ_RAHEAD to bio by the fact that
->readpages is called only from read-ahead.

In Documentation/filesystems/vfs.txt,

readpages: called by the VM to read pages associated with the address_space
   object. This is essentially just a vector version of
   readpage.  Instead of just one page, several pages are
   requested.
readpages is only used for read-ahead, so read errors are
   ignored.  If anything goes wrong, feel free to give up.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c