diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-08-24 21:03:05 (GMT) |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-08-24 21:03:05 (GMT) |
commit | a2242db0906445491d9ac50bfa756b0de0a25d45 (patch) | |
tree | ed530c05eaae5293fd6b14cfb05bdee655adc586 /fs/gfs2/incore.h | |
parent | 166afccd71fbb7bd758ab9fc770eef4924081077 (diff) | |
download | linux-fsl-qoriq-a2242db0906445491d9ac50bfa756b0de0a25d45.tar.xz |
[GFS2] Speed up scanning of glocks
I noticed the gfs2_scand seemed to be taking a lot of CPU,
so in order to cut that down a bit, here is a patch. Firstly
the type of a glock is a constant during its lifetime, so that
its possible to check this without needing locking. I've moved
the (common) case of testing for an inode glock outside of
the glmutex lock.
Also there was a mutex left over from when the glock cache was
master of the inode cache. That isn't required any more so I've
removed that too.
There is probably scope for further speed ups in the future
in this area.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index e98c14f..78d3cb5 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -507,7 +507,6 @@ struct gfs2_sbd { struct gfs2_holder sd_live_gh; struct gfs2_glock *sd_rename_gl; struct gfs2_glock *sd_trans_gl; - struct mutex sd_invalidate_inodes_mutex; /* Inode Stuff */ |