gfs2: gfs2_inode_lookup rework
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 29 Nov 2021 09:50:41 +0000 (10:50 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 2 Dec 2021 11:41:09 +0000 (12:41 +0100)
commit5f6e13baebf31d71779617b45fbe88ed62f121dc
tree53f0cbd9be8aff3bc2314ce6c89909306720b295
parentb8e12e3599ad61b25478159b290d94d66326b3c3
gfs2: gfs2_inode_lookup rework

Rework gfs2_inode_lookup() to only set up the new inode's glocks after
verifying that the new inode is valid.

There is no need for flushing the inode glock work queue anymore now,
so remove that as well.

While at it, get rid of the useless wrapper around iget5_locked() and
its unnecessary is_bad_inode() check.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/inode.c