OSDN Git Service

staging: erofs: code cleanup for erofs_show_options()
authorChengguang Xu <cgxu519@gmx.com>
Wed, 19 Sep 2018 14:53:45 +0000 (22:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 10:26:29 +0000 (12:26 +0200)
commit2ab3dd84c0a1a0a7fc5ef2d893fb2612086bc94f
treedeca050f099b3ac5fa9add086485f6f50cdde353
parent01e4ae4b687fad12fa00ebf0bc0723f1fbbeec30
staging: erofs: code cleanup for erofs_show_options()

Add new helper erofs_get_fault_rate() to get fault rate instead of
directly getting it from sbi, so we can remove the macro check
surrounding it.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/super.c