mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
Btrfs: Show discard option in /proc/mounts
Christoph's patch e244a0aeb6
doesn't display
the discard option in /proc/mounts, leading to some confusion for me.
Here's the missing bit.
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
4a8be425a8
commit
20a5239a5d
1 changed files with 2 additions and 0 deletions
|
@ -457,6 +457,8 @@ static int btrfs_show_options(struct seq_file *seq, struct vfsmount *vfs)
|
|||
seq_puts(seq, ",notreelog");
|
||||
if (btrfs_test_opt(root, FLUSHONCOMMIT))
|
||||
seq_puts(seq, ",flushoncommit");
|
||||
if (btrfs_test_opt(root, DISCARD))
|
||||
seq_puts(seq, ",discard");
|
||||
if (!(root->fs_info->sb->s_flags & MS_POSIXACL))
|
||||
seq_puts(seq, ",noacl");
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue