diff mbox

btrfs: Show discard option in /proc/mounts

Message ID 20091214220112.GJ7812@parisc-linux.org (mailing list archive)
State Accepted
Headers show

Commit Message

Matthew Wilcox Dec. 14, 2009, 10:01 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 752a546..5e5bd29 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -450,6 +450,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;