OSDN Git Service

f2fs: introduce f2fs_read_single_page() for cleanup
authorChao Yu <yuchao0@huawei.com>
Mon, 25 Mar 2019 13:07:30 +0000 (21:07 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 9 May 2019 05:00:04 +0000 (22:00 -0700)
commitc351f529e2200e21c54fc1e7200b2a3ec22761f3
treea09954aee4fcc438d8a5940cdc0ed46711ac40de
parent8ac217148510d64a5bb66af85a3494801e833161
f2fs: introduce f2fs_read_single_page() for cleanup

This patch introduces f2fs_read_single_page() to wrap core operations
of reading one page in f2fs_mpage_readpages().

In addition, if we failed in f2fs_mpage_readpages(), propagate error
number to f2fs_read_data_page(), for f2fs_read_data_pages() path,
always return success.

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