[GFS2] Remove unneeded i_spin
authorBob Peterson <rpeterso@redhat.com>
Fri, 11 Jan 2008 19:31:12 +0000 (13:31 -0600)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 25 Jan 2008 08:18:44 +0000 (08:18 +0000)
This patch removes a vestigial variable "i_spin" from the gfs2_inode
structure.  This not only saves us memory (>300000 of these in memory
for the oom test) it also saves us time because we don't have to
spend time initializing it (i.e. slightly better performance).

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/incore.h
fs/gfs2/main.c

index 4cdda1a3e12c698e74f060c44b32c973bcebdb41..513aaf0dc0ab5b6bbba7d10e9567d40cf33515c7 100644 (file)
@@ -267,7 +267,6 @@ struct gfs2_inode {
        struct gfs2_alloc *i_alloc;
        u64 i_last_rg_alloc;
 
-       spinlock_t i_spin;
        struct rw_semaphore i_rw_mutex;
 };
 
index 88686fcdfb1b7e0a6b5c8d1bd5b20e0cb69717a4..9c7765c12d62eeac6443d853cf6bde4584019690 100644 (file)
@@ -29,7 +29,6 @@ static void gfs2_init_inode_once(struct kmem_cache *cachep, void *foo)
        struct gfs2_inode *ip = foo;
 
        inode_init_once(&ip->i_inode);
-       spin_lock_init(&ip->i_spin);
        init_rwsem(&ip->i_rw_mutex);
        ip->i_alloc = NULL;
 }