Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263731
b: refs/heads/master
c: e0b6d65
h: refs/heads/master
i:
  263729: 57d48b3
  263727: 691f239
v: v3
  • Loading branch information
Sergei Trofimovich authored and Chris Mason committed Sep 11, 2011
1 parent 18e59c2 commit 7b27dea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: 14c7cca780bd210564ae964f57a8bb807d0b3dbf
refs/heads/master: e0b6d65be57fb37ca67b04ce8964546a74d2125c
10 changes: 3 additions & 7 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3952,7 +3952,6 @@ struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location,
struct btrfs_root *root, int *new)
{
struct inode *inode;
int bad_inode = 0;

inode = btrfs_iget_locked(s, location->objectid, root);
if (!inode)
Expand All @@ -3968,15 +3967,12 @@ struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location,
if (new)
*new = 1;
} else {
bad_inode = 1;
unlock_new_inode(inode);
iput(inode);
inode = ERR_PTR(-ESTALE);
}
}

if (bad_inode) {
iput(inode);
inode = ERR_PTR(-ESTALE);
}

return inode;
}

Expand Down

0 comments on commit 7b27dea

Please sign in to comment.