Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-6794 nfs: ASSERTION( atomic_read(&d->ld_ref) == 0 ) failed
[fs/lustre-release.git]
/
lustre
/
llite
/
llite_nfs.c
diff --git
a/lustre/llite/llite_nfs.c
b/lustre/llite/llite_nfs.c
index
38e2726
..
9e19e78
100644
(file)
--- a/
lustre/llite/llite_nfs.c
+++ b/
lustre/llite/llite_nfs.c
@@
-135,13
+135,10
@@
ll_iget_for_nfs(struct super_block *sb, struct lu_fid *fid, struct lu_fid *paren
RETURN(ERR_PTR(-ESTALE));
}
+ /* N.B. d_obtain_alias() drops inode ref on error */
result = d_obtain_alias(inode);
- if (IS_ERR(result)) {
- iput(inode);
- RETURN(result);
- }
-
RETURN(result);
+ RETURN(result);
}
#ifndef FILEID_INVALID