[PATCH v2 24/35] ubifs: suspend & resume quota properly in ubifs_remount
Dongsheng Yang
yangds.fnst at cn.fujitsu.com
Wed Jul 29 22:48:20 PDT 2015
Signed-off-by: Dongsheng Yang <yangds.fnst at cn.fujitsu.com>
---
fs/ubifs/super.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 6ed35e2..06dd7af 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -2128,11 +2128,13 @@ static int ubifs_remount_fs(struct super_block *sb, int *flags, char *data)
err = ubifs_remount_rw(c);
if (err)
return err;
+ dquot_resume(sb, -1);
} else if (!c->ro_mount && (*flags & MS_RDONLY)) {
if (c->ro_error) {
ubifs_msg(c, "cannot re-mount R/O due to prior errors");
return -EROFS;
}
+ dquot_suspend(sb, -1);
ubifs_remount_ro(c);
}
--
1.8.4.2
More information about the linux-mtd
mailing list