Btrfs: show subvol= and subvolid= in /proc/mounts
authorOmar Sandoval <osandov@osandov.com>
Mon, 18 May 2015 09:16:31 +0000 (02:16 -0700)
committerChris Mason <clm@fb.com>
Wed, 3 Jun 2015 11:03:02 +0000 (04:03 -0700)
commitc8d3fe028f64054d75c72566efb9ecf3c75ee161
tree1803c740b33b7b14234235b4f142476d2df9bf10
parent05dbe6837b60465db6a61d1f0cabe745e20aadc9
Btrfs: show subvol= and subvolid= in /proc/mounts

Now that we're guaranteed to have a meaningful root dentry, we can just
export seq_dentry() and use it in btrfs_show_options(). The subvolume ID
is easy to get and can also be useful, so put that in there, too.

Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/super.c
fs/seq_file.c