Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154587
b: refs/heads/master
c: 4d6c13f
h: refs/heads/master
i:
  154585: 54aa263
  154583: 0e42f65
v: v3
  • Loading branch information
Bryan Donlan authored and Linus Torvalds committed Jul 1, 2009
1 parent 5db7a1e commit 8db54c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: 341c87bf346f57748230628c5ad6ee69219250e8
refs/heads/master: 4d6c13f87db12ae1ce35ea6a15688ac72419b133
12 changes: 10 additions & 2 deletions trunk/fs/ext2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,16 @@ static struct dentry *ext2_lookup(struct inode * dir, struct dentry *dentry, str
inode = NULL;
if (ino) {
inode = ext2_iget(dir->i_sb, ino);
if (IS_ERR(inode))
return ERR_CAST(inode);
if (unlikely(IS_ERR(inode))) {
if (PTR_ERR(inode) == -ESTALE) {
ext2_error(dir->i_sb, __func__,
"deleted inode referenced: %lu",
ino);
return ERR_PTR(-EIO);
} else {
return ERR_CAST(inode);
}
}
}
return d_splice_alias(inode, dentry);
}
Expand Down

0 comments on commit 8db54c7

Please sign in to comment.