]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1372355c57345a8367c1f4095ac9a9a4a6bfbe7f
tree53f0cbd9be8aff3bc2314ce6c89909306720b295
parent7e51ab68915e985ee65fb067f238a778a23eca8a
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