]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
GFS2: Eliminate gfs2_rg_lops
authorBob Peterson <rpeterso@redhat.com>
Tue, 21 May 2013 14:54:04 +0000 (10:54 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Sun, 26 May 2013 13:21:25 +0000 (14:21 +0100)
With recent changes to the transactions, it appears that we
are no longer using the "log ops" for resource groups. Since the
log commit code processes the array of log ops, eliminating this
should be marginally better for performance. Therefore this patch
eliminates it.

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

index e069041526dbce7d5337da5a490a4ae5b105328f..0457768a6c06d94011aa7e4d26497522c8be5970 100644 (file)
@@ -850,10 +850,6 @@ const struct gfs2_log_operations gfs2_revoke_lops = {
        .lo_name = "revoke",
 };
 
-const struct gfs2_log_operations gfs2_rg_lops = {
-       .lo_name = "rg",
-};
-
 const struct gfs2_log_operations gfs2_databuf_lops = {
        .lo_before_commit = databuf_lo_before_commit,
        .lo_after_commit = databuf_lo_after_commit,
@@ -865,7 +861,6 @@ const struct gfs2_log_operations gfs2_databuf_lops = {
 const struct gfs2_log_operations *gfs2_log_ops[] = {
        &gfs2_databuf_lops,
        &gfs2_buf_lops,
-       &gfs2_rg_lops,
        &gfs2_revoke_lops,
        NULL,
 };
index 87e062e05c92a597587d244230140b5a09e126af..9ca2e6438419a93f0100f16e26405a4e86097922 100644 (file)
@@ -23,7 +23,6 @@
 extern const struct gfs2_log_operations gfs2_glock_lops;
 extern const struct gfs2_log_operations gfs2_buf_lops;
 extern const struct gfs2_log_operations gfs2_revoke_lops;
-extern const struct gfs2_log_operations gfs2_rg_lops;
 extern const struct gfs2_log_operations gfs2_databuf_lops;
 
 extern const struct gfs2_log_operations *gfs2_log_ops[];