staging: erofs: introduce erofs_page_is_managed()
authorGao Xiang <gaoxiang25@huawei.com>
Mon, 25 Mar 2019 03:40:08 +0000 (11:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2019 20:51:17 +0000 (05:51 +0900)
commitd61fbb6b163494219335a25812dab9acb291c4b6
treeed28a0ccd5da4dc389ee6ab3ebb8c2a379421b17
parent11152496021ea872dac150e0fdad610f6e63773d
staging: erofs: introduce erofs_page_is_managed()

1) In order to clean up unnecessary
   page->mapping == MNGD_MAPPING(sbi) wrapped by #ifdefs;

2) Needed by "staging: erofs: support IO read error injection".

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