• Jaegeuk Kim's avatar
    f2fs: assign REQ_RAHEAD to bio for ->readpages · e2e59414
    Jaegeuk Kim authored
    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: default avatarJens Axboe <axboe@kernel.dk>
    Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    e2e59414
data.c 63.1 KB