mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-11 03:48:00 +00:00
staging: lustre: llite: don't call make_bad_inode() on an old inode
In ll_iget() if ll_update_inode() fails then do not call make_bad_inode() on the inode since it may still be in use. Signed-off-by: John L. Hammond <john.hammond@intel.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5468 Reviewed-on: http://review.whamcloud.com/11609 Reviewed-by: Lai Siyao <lai.siyao@intel.com> Reviewed-by: Fan Yong <fan.yong@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b9d4b143de
commit
960a7e37f4
@ -132,7 +132,6 @@ struct inode *ll_iget(struct super_block *sb, ino_t hash,
|
||||
CDEBUG(D_VFSTRACE, "got inode: "DFID"(%p): rc = %d\n",
|
||||
PFID(&md->body->mbo_fid1), inode, rc);
|
||||
if (rc) {
|
||||
make_bad_inode(inode);
|
||||
iput(inode);
|
||||
inode = ERR_PTR(rc);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user