gfs2: Move inode generation number check into gfs2_inode_lookup
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 15 Jan 2020 05:21:42 +0000 (06:21 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 5 Jun 2020 18:19:21 +0000 (20:19 +0200)
commitb66648ad6dcfefd9f02b5408c1381987c090cb13
tree937a6bb7e330863df726e64570a98ccc6a13af71
parent6bdcadea75768bbd1cd8f6f13011978e1e19a53b
gfs2: Move inode generation number check into gfs2_inode_lookup

Move the inode generation number check from gfs2_lookup_by_inum into
gfs2_inode_lookup: gfs2_inode_lookup may be able to decide that an inode with
the given inode generation number cannot exist without having to verify the
block type or reading the inode from disk.

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