ext4: log rorw on remount only when state changes
PATCH 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
Signed-off-by Nicolas Bretz <[email protected]>
--- fs/ext4/super.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
fs/ext4/super.c +4 -3
@@ -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