aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2007-09-02 10:39:43 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2007-10-10 03:56:07 -0400
commit82e86087bb774cd54d47db4a7c771b5b29bea9ed (patch)
treec067773861203becfa6c8cf9e4ee449787cf65f6 /fs/gfs2/incore.h
parent8475487befb29eeb038fef374a7433d276336a25 (diff)
[GFS2] Replace revoke structure with bufdata structure
Both the revoke structure and the bufdata structure are quite similar. They are basically small tags which are put on lists. In addition to which the revoke structure is always allocated when there is a bufdata structure which is (or can be) freed. As such it should be possible to reduce the number of frees and allocations by using the same structure for both purposes. This patch is the first step along that path. It replaces existing uses of the revoke structure with the bufdata structure. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 388dc1bd736f..8aa5780862be 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -114,7 +114,13 @@ struct gfs2_bufdata {
114 struct buffer_head *bd_bh; 114 struct buffer_head *bd_bh;
115 struct gfs2_glock *bd_gl; 115 struct gfs2_glock *bd_gl;
116 116
117 struct list_head bd_list_tr; 117 union {
118 struct list_head list_tr;
119 u64 blkno;
120 } u;
121#define bd_list_tr u.list_tr
122#define bd_blkno u.blkno
123
118 struct gfs2_log_element bd_le; 124 struct gfs2_log_element bd_le;
119 125
120 struct gfs2_ail *bd_ail; 126 struct gfs2_ail *bd_ail;
@@ -298,11 +304,6 @@ struct gfs2_file {
298 struct gfs2_holder f_fl_gh; 304 struct gfs2_holder f_fl_gh;
299}; 305};
300 306
301struct gfs2_revoke {
302 struct gfs2_log_element rv_le;
303 u64 rv_blkno;
304};
305
306struct gfs2_revoke_replay { 307struct gfs2_revoke_replay {
307 struct list_head rr_list; 308 struct list_head rr_list;
308 u64 rr_blkno; 309 u64 rr_blkno;