aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2008-07-10 10:54:12 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2008-07-10 10:54:12 -0400
commit9cabcdbd4638cf884839ee4cd15780800c223b90 (patch)
tree7f5c4aa81a919fde33e33e5d8df04e053f99b93b /fs/gfs2/incore.h
parent209806aba9d540dde3db0a5ce72307f85f33468f (diff)
[GFS2] Replace rgrp "recent list" with mru list
This patch removes the "recent list" which is used during allocation and replaces it with the (already existing) mru list used during deletion. The "recent list" was not a true mru list leading to a number of inefficiencies including a "next" function which made scanning the list an order N^2 operation wrt to the number of list elements. This should increase allocation performance with large numbers of rgrps. Its also a useful preparation and cleanup before some further changes which are planned in this area. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 4b734c6e34f0..4ab3c3a4a96f 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -77,7 +77,6 @@ struct gfs2_rgrp_host {
77struct gfs2_rgrpd { 77struct gfs2_rgrpd {
78 struct list_head rd_list; /* Link with superblock */ 78 struct list_head rd_list; /* Link with superblock */
79 struct list_head rd_list_mru; 79 struct list_head rd_list_mru;
80 struct list_head rd_recent; /* Recently used rgrps */
81 struct gfs2_glock *rd_gl; /* Glock for this rgrp */ 80 struct gfs2_glock *rd_gl; /* Glock for this rgrp */
82 u64 rd_addr; /* grp block disk address */ 81 u64 rd_addr; /* grp block disk address */
83 u64 rd_data0; /* first data location */ 82 u64 rd_data0; /* first data location */
@@ -529,7 +528,6 @@ struct gfs2_sbd {
529 struct mutex sd_rindex_mutex; 528 struct mutex sd_rindex_mutex;
530 struct list_head sd_rindex_list; 529 struct list_head sd_rindex_list;
531 struct list_head sd_rindex_mru_list; 530 struct list_head sd_rindex_mru_list;
532 struct list_head sd_rindex_recent_list;
533 struct gfs2_rgrpd *sd_rindex_forward; 531 struct gfs2_rgrpd *sd_rindex_forward;
534 unsigned int sd_rgrps; 532 unsigned int sd_rgrps;
535 533