diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2016-06-14 12:23:59 -0500 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2016-06-27 09:47:08 -0500 |
commit | ec5ec66ba48bd3163110599359797858ac38e79b (patch) | |
tree | 1e458e0013387f255edee8cdd96e005d83f4ed9e /fs/gfs2/inode.c | |
parent | 3ce37b2cb4917674fa5b776e857dcea94c0e0835 (diff) | |
download | linux-ec5ec66ba48bd3163110599359797858ac38e79b.tar.bz2 |
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>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r-- | fs/gfs2/inode.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 6d5c6bbec416..ebff26ee6865 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c @@ -37,21 +37,6 @@ #include "super.h" #include "glops.h" -struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr) -{ - struct inode *inode; - -repeat: - inode = ilookup(sb, no_addr); - if (!inode) - return inode; - if (is_bad_inode(inode)) { - iput(inode); - goto repeat; - } - return inode; -} - static struct inode *gfs2_iget(struct super_block *sb, u64 no_addr) { struct inode *inode; |