]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[GFS2] Remove unused counters
authorBob Peterson <rpeterso@redhat.com>
Tue, 5 Feb 2008 23:11:40 +0000 (17:11 -0600)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 31 Mar 2008 09:40:34 +0000 (10:40 +0100)
This is kind of trivial in the greater scheme of things, but
this removes three counters that AFAICT are never used.

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

index 9dfdde3612a4b2856a5d5a40424e0b686a85d3ff..b67e44baa73ced65f18ef329342cf7e78711d964 100644 (file)
@@ -636,9 +636,6 @@ struct gfs2_sbd {
 
        /* Counters */
 
-       atomic_t sd_glock_count;
-       atomic_t sd_glock_held_count;
-       atomic_t sd_inode_count;
        atomic_t sd_reclaimed;
 
        char sd_fsname[GFS2_FSNAME_LEN];
index cc35ec862ee8cb77e8df8dbbaf9cd587bdeb6e81..9ab9fc85ecd04e7740c81b394289a30e1da24e08 100644 (file)
@@ -327,15 +327,9 @@ static ssize_t name##_show(struct gfs2_sbd *sdp, char *buf)                 \
 }                                                                           \
 static struct counters_attr counters_attr_##name = __ATTR_RO(name)
 
-COUNTERS_ATTR(glock_count,      "%u\n");
-COUNTERS_ATTR(glock_held_count, "%u\n");
-COUNTERS_ATTR(inode_count,      "%u\n");
 COUNTERS_ATTR(reclaimed,        "%u\n");
 
 static struct attribute *counters_attrs[] = {
-       &counters_attr_glock_count.attr,
-       &counters_attr_glock_held_count.attr,
-       &counters_attr_inode_count.attr,
        &counters_attr_reclaimed.attr,
        NULL,
 };