diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-04-28 10:59:12 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-04-28 10:59:12 -0400 |
commit | 08bc2dbc7327e89b9d5b9c8ef9401d1df2622fca (patch) | |
tree | 2c16cbd9f5bd856b00ef0a0d9f88b3afa67712ee /fs/gfs2/glock.h | |
parent | c56b39cd2c55d521597f04bbd872a08d1c4373ca (diff) |
[GFS2] [-mm patch] fs/gfs2/: possible cleanups
This patch contains the following possible cleanups:
- make needlessly global code static
- #if 0 unused functions
- remove the following global function that was both unused and
unimplemented:
- super.c: gfs2_do_upgrade()
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.h')
-rw-r--r-- | fs/gfs2/glock.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h index 6f9c88ed5383..a36b26585fb8 100644 --- a/fs/gfs2/glock.h +++ b/fs/gfs2/glock.h | |||
@@ -73,8 +73,6 @@ static inline int gfs2_glock_is_blocking(struct gfs2_glock *gl) | |||
73 | return ret; | 73 | return ret; |
74 | } | 74 | } |
75 | 75 | ||
76 | struct gfs2_glock *gfs2_glock_find(struct gfs2_sbd *sdp, | ||
77 | struct lm_lockname *name); | ||
78 | int gfs2_glock_get(struct gfs2_sbd *sdp, | 76 | int gfs2_glock_get(struct gfs2_sbd *sdp, |
79 | uint64_t number, struct gfs2_glock_operations *glops, | 77 | uint64_t number, struct gfs2_glock_operations *glops, |
80 | int create, struct gfs2_glock **glp); | 78 | int create, struct gfs2_glock **glp); |
@@ -85,15 +83,11 @@ void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags, | |||
85 | void gfs2_holder_reinit(unsigned int state, unsigned flags, | 83 | void gfs2_holder_reinit(unsigned int state, unsigned flags, |
86 | struct gfs2_holder *gh); | 84 | struct gfs2_holder *gh); |
87 | void gfs2_holder_uninit(struct gfs2_holder *gh); | 85 | void gfs2_holder_uninit(struct gfs2_holder *gh); |
88 | struct gfs2_holder *gfs2_holder_get(struct gfs2_glock *gl, unsigned int state, | ||
89 | int flags, gfp_t gfp_flags); | ||
90 | void gfs2_holder_put(struct gfs2_holder *gh); | ||
91 | 86 | ||
92 | void gfs2_glock_xmote_th(struct gfs2_glock *gl, unsigned int state, int flags); | 87 | void gfs2_glock_xmote_th(struct gfs2_glock *gl, unsigned int state, int flags); |
93 | void gfs2_glock_drop_th(struct gfs2_glock *gl); | 88 | void gfs2_glock_drop_th(struct gfs2_glock *gl); |
94 | 89 | ||
95 | void gfs2_glmutex_lock(struct gfs2_glock *gl); | 90 | void gfs2_glmutex_lock(struct gfs2_glock *gl); |
96 | int gfs2_glmutex_trylock(struct gfs2_glock *gl); | ||
97 | void gfs2_glmutex_unlock(struct gfs2_glock *gl); | 91 | void gfs2_glmutex_unlock(struct gfs2_glock *gl); |
98 | 92 | ||
99 | int gfs2_glock_nq(struct gfs2_holder *gh); | 93 | int gfs2_glock_nq(struct gfs2_holder *gh); |
@@ -101,9 +95,6 @@ int gfs2_glock_poll(struct gfs2_holder *gh); | |||
101 | int gfs2_glock_wait(struct gfs2_holder *gh); | 95 | int gfs2_glock_wait(struct gfs2_holder *gh); |
102 | void gfs2_glock_dq(struct gfs2_holder *gh); | 96 | void gfs2_glock_dq(struct gfs2_holder *gh); |
103 | 97 | ||
104 | void gfs2_glock_prefetch(struct gfs2_glock *gl, unsigned int state, int flags); | ||
105 | void gfs2_glock_force_drop(struct gfs2_glock *gl); | ||
106 | |||
107 | int gfs2_glock_be_greedy(struct gfs2_glock *gl, unsigned int time); | 98 | int gfs2_glock_be_greedy(struct gfs2_glock *gl, unsigned int time); |
108 | 99 | ||
109 | void gfs2_glock_dq_uninit(struct gfs2_holder *gh); | 100 | void gfs2_glock_dq_uninit(struct gfs2_holder *gh); |
@@ -148,7 +139,6 @@ static inline int gfs2_glock_nq_init(struct gfs2_glock *gl, | |||
148 | 139 | ||
149 | int gfs2_lvb_hold(struct gfs2_glock *gl); | 140 | int gfs2_lvb_hold(struct gfs2_glock *gl); |
150 | void gfs2_lvb_unhold(struct gfs2_glock *gl); | 141 | void gfs2_lvb_unhold(struct gfs2_glock *gl); |
151 | void gfs2_lvb_sync(struct gfs2_glock *gl); | ||
152 | 142 | ||
153 | void gfs2_glock_cb(lm_fsdata_t *fsdata, unsigned int type, void *data); | 143 | void gfs2_glock_cb(lm_fsdata_t *fsdata, unsigned int type, void *data); |
154 | 144 | ||
@@ -161,6 +151,4 @@ void gfs2_reclaim_glock(struct gfs2_sbd *sdp); | |||
161 | void gfs2_scand_internal(struct gfs2_sbd *sdp); | 151 | void gfs2_scand_internal(struct gfs2_sbd *sdp); |
162 | void gfs2_gl_hash_clear(struct gfs2_sbd *sdp, int wait); | 152 | void gfs2_gl_hash_clear(struct gfs2_sbd *sdp, int wait); |
163 | 153 | ||
164 | int gfs2_dump_lockstate(struct gfs2_sbd *sdp); | ||
165 | |||
166 | #endif /* __GLOCK_DOT_H__ */ | 154 | #endif /* __GLOCK_DOT_H__ */ |