jffs2: Allow setting rp_size to zero during remounting
authorlizhe <lizhe67@huawei.com>
Wed, 14 Oct 2020 06:54:43 +0000 (14:54 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 13 Dec 2020 20:56:24 +0000 (21:56 +0100)
commitcd3ed3c73ac671ff6b0230ccb72b8300292d3643
tree4d7b572a99b64e0440f07170ff75a8509917d1ec
parent08cd274f9b8283a1da93e2ccab216a336da83525
jffs2: Allow setting rp_size to zero during remounting

Set rp_size to zero will be ignore during remounting.

The method to identify whether we input a remounting option of
rp_size is to check if the rp_size input is zero. It can not work
well if we pass "rp_size=0".

This patch add a bool variable "set_rp_size" to fix this problem.

Reported-by: Jubin Zhong <zhongjubin@huawei.com>
Signed-off-by: lizhe <lizhe67@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/jffs2/jffs2_fs_sb.h
fs/jffs2/super.c