Skip to content

Commit ad065dd

Browse files
committed
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 ^^^^^^^^ ^^^^^^^^ Signed-off-by: "Theodore Ts'o" <[email protected]> Cc: [email protected]
1 parent 822dbba commit ad065dd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/ext4/super.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,12 +1702,6 @@ static inline void ext4_show_quota_options(struct seq_file *seq,
17021702

17031703
if (sbi->s_qf_names[GRPQUOTA])
17041704
seq_printf(seq, ",grpjquota=%s", sbi->s_qf_names[GRPQUOTA]);
1705-
1706-
if (test_opt(sb, USRQUOTA))
1707-
seq_puts(seq, ",usrquota");
1708-
1709-
if (test_opt(sb, GRPQUOTA))
1710-
seq_puts(seq, ",grpquota");
17111705
#endif
17121706
}
17131707

0 commit comments

Comments
 (0)