diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index c761d8e068e8839297a6b0fed57e84cf88342ca8..93f2edf6b60348023b144032089a4e74b43b19f2 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -1209,7 +1209,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);