Message ID | 89684580fa5b3dce63d7491789f835eb3ce6d4dd.1431939732.git.osandov@osandov.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 9e66f5e..0576750 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -1214,7 +1214,9 @@ static struct dentry *mount_subvol(const char *subvol_name, int flags, return ERR_CAST(mnt); } + down_write(&mnt->mnt_sb->s_umount); r = btrfs_remount(mnt->mnt_sb, &flags, NULL); + up_write(&mnt->mnt_sb->s_umount); if (r < 0) { /* FIXME: release vfsmount mnt ??*/ kfree(newargs);