Skip to contentSkip to conversation

ext4: don't show usrquota/grpquota twice in /proc/mounts

PATCH In review Theodore Ts'o 2 participants 2 messages Jul 11, 2013 – Jul 16, 2013 ext4 file system

lore
Share & tools
lore

Theodore Ts'o

author maintainer
#0 lore raw

PATCH 1/1 ext4: don't show usrquota/grpquota twice in /proc/mounts

We now print mount options in a generic fashion in ext4_show_options(), so we shouldn't be explicitly printing the {usr,grp}quota options in ext4_show_quota_options().

Without this patch, /proc/mounts can look like this:

/dev/vdb /vdb ext4 rw,relatime,quota,usrquota,data=ordered,usrquota 0 0

                                      ^^^^^^^^              ^^^^^^^^
---
 fs/ext4/super.c | 6 ------
 1 file changed, 6 deletions(-)
fs/ext4/super.c +0 -6
index 8862d4d..bca26f3 100644
@@ -1702,12 +1702,6 @@ static inline void ext4_show_quota_options(struct seq_file *seq,
 
 	if (sbi->s_qf_names[GRPQUOTA])
 		seq_printf(seq, ",grpjquota=%s", sbi->s_qf_names[GRPQUOTA]);
-
-	if (test_opt(sb, USRQUOTA))
-		seq_puts(seq, ",usrquota");
-
-	if (test_opt(sb, GRPQUOTA))
-		seq_puts(seq, ",grpquota");
 #endif
 }
 
Signature · 1 line
1.7.12.rc0.22.gcdd159b
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Ted Tso

We now print mount options in a generic fashion in ext4_show_options(), so we shouldn't be explicitly printing the {usr,grp}quota options in ext4_show_quota_options().

Without this patch, /proc/mounts can look like this:

/dev/vdb /vdb ext4 rw,relatime,quota,usrquota,data=ordered,usrquota 0 0

                                      ^^^^^^^^              ^^^^^^^^

Looks good. You can add:

Honza

Quoted 28 lines
---
 fs/ext4/super.c | 6 ------
 1 file changed, 6 deletions(-)
fs/ext4/super.c +0 -6
index 8862d4d..bca26f3 100644
@@ -1702,12 +1702,6 @@ static inline void ext4_show_quota_options(struct seq_file *seq,
 
 	if (sbi->s_qf_names[GRPQUOTA])
 		seq_printf(seq, ",grpjquota=%s", sbi->s_qf_names[GRPQUOTA]);
-
-	if (test_opt(sb, USRQUOTA))
-		seq_puts(seq, ",usrquota");
-
-	if (test_opt(sb, GRPQUOTA))
-		seq_puts(seq, ",grpquota");
 #endif
 }
 
Signature · 6 lines
1.7.12.rc0.22.gcdd159b

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR