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, 10 Oct 2017 19:49:52 +0000 (12:49 -0700)
commit71cb4afff80cee2b0f0dfda32f55e4e8d4f1153d
tree3ec4297e17253f49da1ddc470937638d3e03fd43
parent14d8d5f7de5a4503156f21691a01aee815734498
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