@@ -461,6 +461,16 @@ static int btrfs_show_options(struct seq_file *seq,
struct vfsmount *vfs)
seq_puts(seq, ",discard");
if (!(root->fs_info->sb->s_flags & MS_POSIXACL))
seq_puts(seq, ",noacl");
+ if( root->fs_info->metadata_ratio )
+ seq_printf(seq, ",metadata_ratio=%d",
+ root->fs_info->metadata_ratio);
+ spin_lock(&vfs->mnt_root->d_lock);
+ if (vfs->mnt_root->d_name.len != 1 ||
+ vfs->mnt_root->d_name.name[0] != '/'){
+ seq_puts(seq, ",subvol=");
+ seq_puts(seq, vfs->mnt_root->d_name.name);
+ }
+ spin_unlock(&vfs->mnt_root->d_lock);
return 0;
}