f2fs: allow readpages with NULL file pointer
authorHsiang Kao <hsiangkao@aol.com>
Sat, 23 Sep 2017 18:45:42 +0000 (02:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 01:21:43 +0000 (17:21 -0800)
commit32c57300f669d6d669c5eaa369ce17cb216008c9
tree2c218054389c68efdf4676c87625b5cc21955629
parentdba2b4548cf9beaaec894619ec7cc04a44ae75d9
f2fs: allow readpages with NULL file pointer

Keep in line with the other Linux file system implementations
since page_cache_sync_readahead supports NULL file pointer,
and thus we can readahead data by f2fs itself without file opening
(something like the btrfs behavior).

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c