]> 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)
commit04886467179d0b9644b7f8556d4c275b0a2480b2
tree43bb4eac11d6d378f8836ed09ce6febbcebc6d2c
parent69dabf3a1b6e5c847ce1757f18ee46b6290ca0a0
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