btrfs: Show discard option in /proc/mounts
PATCH 1/1 btrfs: Show discard option in /proc/mounts
Christoph's patch e244a0aeb6a599c19a7c802cda6e2d67c847b154 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 <[email protected]>
fs/btrfs/super.c +2 -0
@@ -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 ;
Signature · 4 lines
Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step."
Quoted 6 lines · Matthew Wilcox
Christoph's patch
e244a0aeb6a599c19a7c802cda6e2d67c847b154doesn't display the discard option in/proc/mounts, leading to some confusion for me. Here's the missing bit.Signed-off-by Matthew Wilcox <[email protected]>
Looks good, sorry for forgetting that bit.