]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
jffs2: Allow setting rp_size to zero during remounting
authorlizhe <lizhe67@huawei.com>
Wed, 14 Oct 2020 06:54:43 +0000 (14:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Jan 2021 13:48:37 +0000 (14:48 +0100)
commit3a83e289e4b7890a046d3ee2e7a59f3ec19f5dc1
treea70a34aed65be661311323bb3e9c1bd084cbaf1d
parentee78e7d93e351b7baee5dc5ac1492ddc98accf43
jffs2: Allow setting rp_size to zero during remounting

[ Upstream commit cd3ed3c73ac671ff6b0230ccb72b8300292d3643 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/jffs2/jffs2_fs_sb.h
fs/jffs2/super.c