diff options
author | lizhe <lizhe67@huawei.com> | 2020-10-14 14:54:43 +0800 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2020-12-13 21:56:24 +0100 |
commit | cd3ed3c73ac671ff6b0230ccb72b8300292d3643 (patch) | |
tree | 4d7b572a99b64e0440f07170ff75a8509917d1ec /fs/jffs2/jffs2_fs_sb.h | |
parent | 08cd274f9b8283a1da93e2ccab216a336da83525 (diff) | |
download | lwn-cd3ed3c73ac671ff6b0230ccb72b8300292d3643.tar.gz lwn-cd3ed3c73ac671ff6b0230ccb72b8300292d3643.zip |
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>
Diffstat (limited to 'fs/jffs2/jffs2_fs_sb.h')
-rw-r--r-- | fs/jffs2/jffs2_fs_sb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/jffs2/jffs2_fs_sb.h b/fs/jffs2/jffs2_fs_sb.h index 778275f48a87..5a7091746f68 100644 --- a/fs/jffs2/jffs2_fs_sb.h +++ b/fs/jffs2/jffs2_fs_sb.h @@ -38,6 +38,7 @@ struct jffs2_mount_opts { * users. This is implemented simply by means of not allowing the * latter users to write to the file system if the amount if the * available space is less then 'rp_size'. */ + bool set_rp_size; unsigned int rp_size; }; |