]> 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)
commite179db390dfabd7634d36379a76f213061fdf7bb
tree53f0cbd9be8aff3bc2314ce6c89909306720b295
parent1a255f29e4a0b9c11195fd1b68627267a1353d11
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