mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: lustre: llite: remove IS_ERR(master_inode) check
The kernel function ilookup5_nowait never returns IS_ERR so we can remove the IS_ERR check in the ll_md_blocking_ast() function. Signed-off-by: James Simmons <uja.ornl@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8697 Reviewed-on: http://review.whamcloud.com/23151 Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Frank Zago <fzago@cray.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: John L. Hammond <john.hammond@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
371bebb4f7
commit
330e2a0f5f
@ -283,7 +283,7 @@ int ll_md_blocking_ast(struct ldlm_lock *lock, struct ldlm_lock_desc *desc,
|
||||
master_inode = ilookup5(inode->i_sb, hash,
|
||||
ll_test_inode_by_fid,
|
||||
(void *)&lli->lli_pfid);
|
||||
if (master_inode && !IS_ERR(master_inode)) {
|
||||
if (master_inode) {
|
||||
ll_invalidate_negative_children(master_inode);
|
||||
iput(master_inode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user