]> git.baikalelectronics.ru Git - kernel.git/commit
staging: erofs: separate erofs_get_meta_page
authorGao Xiang <gaoxiang25@huawei.com>
Tue, 21 Aug 2018 14:49:30 +0000 (22:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Aug 2018 17:46:12 +0000 (19:46 +0200)
commit15a55b82c4f02d112e9b2f0dd8318e431d0e3e3d
tree43bb4eac11d6d378f8836ed09ce6febbcebc6d2c
parentf76be7a5f862e4b71244c002afe1818c411326e4
staging: erofs: separate erofs_get_meta_page

This patch separates 'erofs_get_meta_page' into 'erofs_get_meta_page'
and 'erofs_get_meta_page_nofail'. The second one ensures that it
should not fail under memory pressure and should make best efforts
if IO errors occur.

It also adds auxiliary variables in order to fulfill 80 character limit.

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/Kconfig
drivers/staging/erofs/data.c
drivers/staging/erofs/internal.h
drivers/staging/erofs/unzip_vle.c
drivers/staging/erofs/xattr.c