[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241114221354.23754-1-bretznic@gmail.com>
Date: Thu, 14 Nov 2024 15:13:54 -0700
From: Nicolas Bretz <bretznic@...il.com>
To: tytso@....edu
Cc: linux-ext4@...r.kernel.org,
Nicolas Bretz <bretznic@...il.com>
Subject: [PATCH] ext4: log rorw on remount only when state changes
it logs ro/rw on remount only when state changes
removes "Quota mode" as it is obsolete
Implemented the suggested solutions in:
https://bugzilla.kernel.org/show_bug.cgi?id=219132
Signed-off-by: Nicolas Bretz <bretznic@...il.com>
---
fs/ext4/super.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index a09f4621b10d..0067184aa599 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -6760,6 +6760,7 @@ static int ext4_reconfigure(struct fs_context *fc)
{
struct super_block *sb = fc->root->d_sb;
int ret;
+ bool old_ro = sb_rdonly(sb);
fc->s_fs_info = EXT4_SB(sb);
@@ -6771,9 +6772,9 @@ static int ext4_reconfigure(struct fs_context *fc)
if (ret < 0)
return ret;
- ext4_msg(sb, KERN_INFO, "re-mounted %pU %s. Quota mode: %s.",
- &sb->s_uuid, sb_rdonly(sb) ? "ro" : "r/w",
- ext4_quota_mode(sb));
+ ext4_msg(sb, KERN_INFO, "re-mounted %pU%s.",
+ &sb->s_uuid,
+ (old_ro != sb_rdonly(sb)) ? (sb_rdonly(sb) ? " ro" : " r/w") : "");
return 0;
}
--
2.39.5
Powered by blists - more mailing lists