]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit39196219f8d8f316a738fa50a23e43f35abf0580
tree3ec4297e17253f49da1ddc470937638d3e03fd43
parentaaeb77a59786a786d164b14acfe453058b92d148
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