diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-08-30 09:30:00 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-08-30 09:30:00 -0400 |
commit | 8fb4b536e7b9dbaf7a6b8204e887b92a14e4352c (patch) | |
tree | f74f905188ca9df0fc6f5fda3c6ee25ede02ee2f /fs/gfs2/glock.h | |
parent | 83b7a664a0c7c39ccfa4c72535dc1c001d4e7a18 (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/glock.h')
-rw-r--r-- | fs/gfs2/glock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h index fdf58db44ae3..12bdbfee4ddc 100644 --- a/fs/gfs2/glock.h +++ b/fs/gfs2/glock.h | |||
@@ -75,7 +75,7 @@ static inline int gfs2_glock_is_blocking(struct gfs2_glock *gl) | |||
75 | } | 75 | } |
76 | 76 | ||
77 | int gfs2_glock_get(struct gfs2_sbd *sdp, | 77 | int gfs2_glock_get(struct gfs2_sbd *sdp, |
78 | uint64_t number, struct gfs2_glock_operations *glops, | 78 | uint64_t number, const struct gfs2_glock_operations *glops, |
79 | int create, struct gfs2_glock **glp); | 79 | int create, struct gfs2_glock **glp); |
80 | void gfs2_glock_hold(struct gfs2_glock *gl); | 80 | void gfs2_glock_hold(struct gfs2_glock *gl); |
81 | int gfs2_glock_put(struct gfs2_glock *gl); | 81 | int gfs2_glock_put(struct gfs2_glock *gl); |
@@ -97,7 +97,7 @@ int gfs2_glock_be_greedy(struct gfs2_glock *gl, unsigned int time); | |||
97 | 97 | ||
98 | void gfs2_glock_dq_uninit(struct gfs2_holder *gh); | 98 | void gfs2_glock_dq_uninit(struct gfs2_holder *gh); |
99 | int gfs2_glock_nq_num(struct gfs2_sbd *sdp, | 99 | int gfs2_glock_nq_num(struct gfs2_sbd *sdp, |
100 | uint64_t number, struct gfs2_glock_operations *glops, | 100 | uint64_t number, const struct gfs2_glock_operations *glops, |
101 | unsigned int state, int flags, struct gfs2_holder *gh); | 101 | unsigned int state, int flags, struct gfs2_holder *gh); |
102 | 102 | ||
103 | int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); | 103 | int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); |
@@ -105,7 +105,7 @@ void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs); | |||
105 | void gfs2_glock_dq_uninit_m(unsigned int num_gh, struct gfs2_holder *ghs); | 105 | void gfs2_glock_dq_uninit_m(unsigned int num_gh, struct gfs2_holder *ghs); |
106 | 106 | ||
107 | void gfs2_glock_prefetch_num(struct gfs2_sbd *sdp, uint64_t number, | 107 | void gfs2_glock_prefetch_num(struct gfs2_sbd *sdp, uint64_t number, |
108 | struct gfs2_glock_operations *glops, | 108 | const struct gfs2_glock_operations *glops, |
109 | unsigned int state, int flags); | 109 | unsigned int state, int flags); |
110 | void gfs2_glock_inode_squish(struct inode *inode); | 110 | void gfs2_glock_inode_squish(struct inode *inode); |
111 | 111 | ||