Skip to content

Commit

Permalink
Merge branch 'for-linus-3.6' of git://git.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/git/mason/linux-btrfs

Pull btrfs merge fix from Chris Mason:
 "This fixes a merge error in rc1.  The calls to mnt_want_write should
  have been removed."

* 'for-linus-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
  Btrfs: remove mnt_want_write call in btrfs_mksubvol
  • Loading branch information
Linus Torvalds committed Aug 12, 2012
2 parents e375647 + e00da20 commit 15fc5de
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,6 @@ static noinline int btrfs_mksubvol(struct path *parent,
struct dentry *dentry;
int error;

error = mnt_want_write(parent->mnt);
if (error)
return error;

mutex_lock_nested(&dir->i_mutex, I_MUTEX_PARENT);

dentry = lookup_one_len(name, parent->dentry, namelen);
Expand Down Expand Up @@ -703,7 +699,6 @@ static noinline int btrfs_mksubvol(struct path *parent,
dput(dentry);
out_unlock:
mutex_unlock(&dir->i_mutex);
mnt_drop_write(parent->mnt);
return error;
}

Expand Down

0 comments on commit 15fc5de

Please sign in to comment.