Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349609
b: refs/heads/master
c: 1a65e24
h: refs/heads/master
i:
  349607: 52502a8
v: v3
  • Loading branch information
Chris Mason committed Feb 6, 2013
1 parent 9aadc24 commit a0ac6cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb6b88d92c6df083dd09a8c471011e3788dfd7c6
refs/heads/master: 1a65e24b0bb7dde48cac4a2bf74d5558f9e32ba7
5 changes: 4 additions & 1 deletion trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,6 @@ static noinline int create_subvol(struct btrfs_root *root,

BUG_ON(ret);

d_instantiate(dentry, btrfs_lookup_dentry(dir, dentry));
fail:
if (async_transid) {
*async_transid = trans->transid;
Expand All @@ -525,6 +524,10 @@ static noinline int create_subvol(struct btrfs_root *root,
}
if (err && !ret)
ret = err;

if (!ret)
d_instantiate(dentry, btrfs_lookup_dentry(dir, dentry));

return ret;
}

Expand Down

0 comments on commit a0ac6cd

Please sign in to comment.