aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-08-30 09:30:00 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-08-30 09:30:00 -0400
commit8fb4b536e7b9dbaf7a6b8204e887b92a14e4352c (patch)
treef74f905188ca9df0fc6f5fda3c6ee25ede02ee2f /fs/gfs2/incore.h
parent83b7a664a0c7c39ccfa4c72535dc1c001d4e7a18 (diff)
[GFS2] Make glock operations const
For all the usual reasons of enforcing correctness and potentially reducing code size, this patch makes the glock operations const. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 77f0903d2f3e..38098ac292af 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -130,7 +130,7 @@ struct gfs2_glock_operations {
130 void (*go_unlock) (struct gfs2_holder * gh); 130 void (*go_unlock) (struct gfs2_holder * gh);
131 void (*go_callback) (struct gfs2_glock * gl, unsigned int state); 131 void (*go_callback) (struct gfs2_glock * gl, unsigned int state);
132 void (*go_greedy) (struct gfs2_glock * gl); 132 void (*go_greedy) (struct gfs2_glock * gl);
133 int go_type; 133 const int go_type;
134}; 134};
135 135
136enum { 136enum {
@@ -189,7 +189,7 @@ struct gfs2_glock {
189 struct list_head gl_waiters2; /* HIF_DEMOTE, HIF_GREEDY */ 189 struct list_head gl_waiters2; /* HIF_DEMOTE, HIF_GREEDY */
190 struct list_head gl_waiters3; /* HIF_PROMOTE */ 190 struct list_head gl_waiters3; /* HIF_PROMOTE */
191 191
192 struct gfs2_glock_operations *gl_ops; 192 const struct gfs2_glock_operations *gl_ops;
193 193
194 struct gfs2_holder *gl_req_gh; 194 struct gfs2_holder *gl_req_gh;
195 gfs2_glop_bh_t gl_req_bh; 195 gfs2_glop_bh_t gl_req_bh;