Skip to content

Commit cd51e61

Browse files
AstralBobswhiteho
authored andcommitted
GFS2: Eliminate gfs2_rg_lops
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>
1 parent 7f63257 commit cd51e61

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

‎fs/gfs2/lops.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -852,10 +852,6 @@ const struct gfs2_log_operations gfs2_revoke_lops = {
852852
.lo_name = "revoke",
853853
};
854854

855-
const struct gfs2_log_operations gfs2_rg_lops = {
856-
.lo_name = "rg",
857-
};
858-
859855
const struct gfs2_log_operations gfs2_databuf_lops = {
860856
.lo_before_commit = databuf_lo_before_commit,
861857
.lo_after_commit = databuf_lo_after_commit,
@@ -867,7 +863,6 @@ const struct gfs2_log_operations gfs2_databuf_lops = {
867863
const struct gfs2_log_operations *gfs2_log_ops[] = {
868864
&gfs2_databuf_lops,
869865
&gfs2_buf_lops,
870-
&gfs2_rg_lops,
871866
&gfs2_revoke_lops,
872867
NULL,
873868
};

‎fs/gfs2/lops.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
extern const struct gfs2_log_operations gfs2_glock_lops;
2424
extern const struct gfs2_log_operations gfs2_buf_lops;
2525
extern const struct gfs2_log_operations gfs2_revoke_lops;
26-
extern const struct gfs2_log_operations gfs2_rg_lops;
2726
extern const struct gfs2_log_operations gfs2_databuf_lops;
2827

2928
extern const struct gfs2_log_operations *gfs2_log_ops[];

0 commit comments

Comments
 (0)