Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108556
b: refs/heads/master
c: 720b499
h: refs/heads/master
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Aug 13, 2008
1 parent 4be9f08 commit 8e56d8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: 0a883a05c54b326bcf99c0902af28dae0386be0a
refs/heads/master: 720b499c806200d06f4f22c668d46db784117089
10 changes: 1 addition & 9 deletions trunk/fs/ubifs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,7 @@ static struct dentry *ubifs_lookup(struct inode *dir, struct dentry *dentry,

err = ubifs_tnc_lookup_nm(c, &key, dent, &dentry->d_name);
if (err) {
/*
* Do not hash the direntry if parent 'i_nlink' is zero, because
* this has side-effects - '->delete_inode()' call will not be
* called for the parent orphan inode, because 'd_count' of its
* direntry will stay 1 (it'll be negative direntry I guess)
* and prevent 'iput_final()' until the dentry is destroyed due
* to unmount or memory pressure.
*/
if (err == -ENOENT && dir->i_nlink != 0) {
if (err == -ENOENT) {
dbg_gen("not found");
goto done;
}
Expand Down

0 comments on commit 8e56d8f

Please sign in to comment.