Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140336
b: refs/heads/master
c: 0977143
h: refs/heads/master
v: v3
  • Loading branch information
Shen Feng authored and Chris Mason committed Apr 2, 2009
1 parent ffc1e02 commit 26dbb83
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: b5555f77115bfba3630fefff2d4e68140b644171
refs/heads/master: 09771430f3b46ee27c69daa7ecad82007568e834
5 changes: 4 additions & 1 deletion trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3481,8 +3481,10 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,

if (dir) {
ret = btrfs_set_inode_index(dir, index);
if (ret)
if (ret) {
iput(inode);
return ERR_PTR(ret);
}
}
/*
* index_cnt is ignored for everything but a dir,
Expand Down Expand Up @@ -3565,6 +3567,7 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
if (dir)
BTRFS_I(dir)->index_cnt--;
btrfs_free_path(path);
iput(inode);
return ERR_PTR(ret);
}

Expand Down

0 comments on commit 26dbb83

Please sign in to comment.