OSDN Git Service

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)
commit6e78901a9f233fb3581799a996b8ff6fadc97763
tree43bb4eac11d6d378f8836ed09ce6febbcebc6d2c
parent8be31270362b444a1f9d160aa5df9f147675b4a7
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