]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe2ca5d3afb363abf24dfd8c1b30ed7b012876b8
tree937a6bb7e330863df726e64570a98ccc6a13af71
parentb64660c1c2b706e717b855f222773bd4bdc67b4d
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