Skip to contentSkip to conversation

ext4: log rorw on remount only when state changes

PATCH RESEND Applied Nicolas Bretz 2 participants 2 messages Mar 19, 2025 – Mar 22, 2025 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 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

---
 fs/ext4/super.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
fs/ext4/super.c +4 -3
index a09f4621b10d..0067184aa599 100644
@@ -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;
 }
Signature · 1 line
2.39.5
maintainer Applied
#1 lore raw
Quoted 8 lines · Nicolas Bretz

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

[...]

Applied, thanks!

[1/1] ext4: log rorw on remount only when state changes

      commit: d7b0befd09320e3356a75cb96541c030515e7f5f

Best regards,

Signature · 1 line
Theodore Ts'o <[email protected]>