]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: gfs2_inode_lookup cleanup
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 29 Nov 2021 02:35:00 +0000 (03:35 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 2 Dec 2021 11:41:09 +0000 (12:41 +0100)
commit7e51ab68915e985ee65fb067f238a778a23eca8a
treeafaa94c17e454e06e95c01e0f758fdb8cbd7e80f
parentcd6aaeef72d6c5f8281ef48ffbc1f79cd5dc888d
gfs2: gfs2_inode_lookup cleanup

In gfs2_inode_lookup, once the inode has been looked up, we check if the
inode generation (no_formal_ino) is the one we're looking for.  If it
isn't and the inode wasn't in the inode cache, we discard the newly
looked up inode.  This is unnecessary, complicates the code, and makes
future changes to gfs2_inode_lookup harder, so change the code to retain
newly looked up inodes instead.

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