]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Get rid of gfs2_ilookup
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 14 Jun 2016 17:23:59 +0000 (12:23 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 27 Jun 2016 14:47:08 +0000 (09:47 -0500)
commit944fa783d9d937444197c94c1935634458ade456
tree1e458e0013387f255edee8cdd96e005d83f4ed9e
parent7ab6b411faf7d40e2758a5accb4c0566b652b869
gfs2: Get rid of gfs2_ilookup

Now that gfs2_lookup_by_inum only takes the inode glock for new inodes
(and not for cached inodes anymore), there no longer is a need to
optimize the cached-inode case in gfs2_get_dentry or delete_work_func,
and gfs2_ilookup can be removed.

In addition, gfs2_get_dentry wasn't checking the GFS2_DIF_SYSTEM flag in
i_diskflags in the gfs2_ilookup case (see gfs2_lookup_by_inum); this
inconsistency goes away as well.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/export.c
fs/gfs2/glock.c
fs/gfs2/inode.c
fs/gfs2/inode.h