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 04:23:10 +0000 (21:23 -0700)
commit2df0ab045784a1ca904437601a5086f570e8cf16
treec19ab4ec5d4703c1d5d2b8b41d6d688a78cea351
parent5c533b19ae26e810d07ba3d2216ea704b2127ab2
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