diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 952172ca7e455633c28a79292d18ebbfd68c4d18..e65fdc8550b14687d1cc5b7f07e04d49999b76b0 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -844,10 +844,6 @@ static noinline int btrfs_mksubvol(struct path *parent, if (IS_ERR(dentry)) goto out_unlock; - error = -EEXIST; - if (d_really_is_positive(dentry)) - goto out_dput; - error = btrfs_may_create(dir, dentry); if (error) goto out_dput;