Whamcloud - gitweb
LU-6794 nfs: ASSERTION( atomic_read(&d->ld_ref) == 0 ) failed
[fs/lustre-release.git] / lustre / llite / llite_nfs.c
index 38e2726..9e19e78 100644 (file)
@@ -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