aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-04-28 10:59:12 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-04-28 10:59:12 -0400
commit08bc2dbc7327e89b9d5b9c8ef9401d1df2622fca (patch)
tree2c16cbd9f5bd856b00ef0a0d9f88b3afa67712ee
parentc56b39cd2c55d521597f04bbd872a08d1c4373ca (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>
-rw-r--r--fs/gfs2/bmap.c3
-rw-r--r--fs/gfs2/bmap.h2
-rw-r--r--fs/gfs2/dir.c8
-rw-r--r--fs/gfs2/eaops.c2
-rw-r--r--fs/gfs2/eaops.h1
-rw-r--r--fs/gfs2/eattr.c3
-rw-r--r--fs/gfs2/eattr.h2
-rw-r--r--fs/gfs2/glock.c25
-rw-r--r--fs/gfs2/glock.h12
-rw-r--r--fs/gfs2/lm.c2
-rw-r--r--fs/gfs2/lm.h1
-rw-r--r--fs/gfs2/locking/dlm/lock.c10
-rw-r--r--fs/gfs2/locking/dlm/lock_dlm.h4
-rw-r--r--fs/gfs2/locking/dlm/main.c4
-rw-r--r--fs/gfs2/locking/nolock/main.c8
-rw-r--r--fs/gfs2/lvb.c2
-rw-r--r--fs/gfs2/lvb.h1
-rw-r--r--fs/gfs2/ondisk.c38
-rw-r--r--fs/gfs2/quota.c2
-rw-r--r--fs/gfs2/quota.h2
-rw-r--r--fs/gfs2/super.c8
-rw-r--r--fs/gfs2/super.h2
-rw-r--r--include/linux/gfs2_ondisk.h14
23 files changed, 79 insertions, 77 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index 68bc3be09c98..f570d8caef68 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -59,7 +59,7 @@ struct strip_mine {
59 * 59 *
60 * Returns: errno 60 * Returns: errno
61 */ 61 */
62 62#if 0
63int gfs2_unstuffer_sync(struct gfs2_inode *ip, struct buffer_head *dibh, 63int gfs2_unstuffer_sync(struct gfs2_inode *ip, struct buffer_head *dibh,
64 uint64_t block, void *private) 64 uint64_t block, void *private)
65{ 65{
@@ -77,6 +77,7 @@ int gfs2_unstuffer_sync(struct gfs2_inode *ip, struct buffer_head *dibh,
77 77
78 return error; 78 return error;
79} 79}
80#endif /* 0 */
80 81
81/** 82/**
82 * gfs2_unstuff_dinode - Unstuff a dinode when the data has grown too big 83 * gfs2_unstuff_dinode - Unstuff a dinode when the data has grown too big
diff --git a/fs/gfs2/bmap.h b/fs/gfs2/bmap.h
index ee9ec8d7515c..23fb6589d5e3 100644
--- a/fs/gfs2/bmap.h
+++ b/fs/gfs2/bmap.h
@@ -13,8 +13,6 @@
13typedef int (*gfs2_unstuffer_t) (struct gfs2_inode * ip, 13typedef int (*gfs2_unstuffer_t) (struct gfs2_inode * ip,
14 struct buffer_head * dibh, uint64_t block, 14 struct buffer_head * dibh, uint64_t block,
15 void *private); 15 void *private);
16int gfs2_unstuffer_sync(struct gfs2_inode *ip, struct buffer_head *dibh,
17 uint64_t block, void *private);
18int gfs2_unstuff_dinode(struct gfs2_inode *ip, gfs2_unstuffer_t unstuffer, 16int gfs2_unstuff_dinode(struct gfs2_inode *ip, gfs2_unstuffer_t unstuffer,
19 void *private); 17 void *private);
20 18
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c
index ffc1beff6703..0404783f39b3 100644
--- a/fs/gfs2/dir.c
+++ b/fs/gfs2/dir.c
@@ -669,10 +669,10 @@ static void dirent_del(struct gfs2_inode *dip, struct buffer_head *bh,
669 * Takes a dent from which to grab space as an argument. Returns the 669 * Takes a dent from which to grab space as an argument. Returns the
670 * newly created dent. 670 * newly created dent.
671 */ 671 */
672struct gfs2_dirent *gfs2_init_dirent(struct inode *inode, 672static struct gfs2_dirent *gfs2_init_dirent(struct inode *inode,
673 struct gfs2_dirent *dent, 673 struct gfs2_dirent *dent,
674 const struct qstr *name, 674 const struct qstr *name,
675 struct buffer_head *bh) 675 struct buffer_head *bh)
676{ 676{
677 struct gfs2_inode *ip = inode->u.generic_ip; 677 struct gfs2_inode *ip = inode->u.generic_ip;
678 struct gfs2_dirent *ndent; 678 struct gfs2_dirent *ndent;
diff --git a/fs/gfs2/eaops.c b/fs/gfs2/eaops.c
index 4b9f6cff7a34..1b376eceb6af 100644
--- a/fs/gfs2/eaops.c
+++ b/fs/gfs2/eaops.c
@@ -167,7 +167,7 @@ static int system_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er)
167 return gfs2_ea_remove_i(ip, er); 167 return gfs2_ea_remove_i(ip, er);
168} 168}
169 169
170struct gfs2_eattr_operations gfs2_user_eaops = { 170static struct gfs2_eattr_operations gfs2_user_eaops = {
171 .eo_get = user_eo_get, 171 .eo_get = user_eo_get,
172 .eo_set = user_eo_set, 172 .eo_set = user_eo_set,
173 .eo_remove = user_eo_remove, 173 .eo_remove = user_eo_remove,
diff --git a/fs/gfs2/eaops.h b/fs/gfs2/eaops.h
index f83c497eddca..30ec6a09bfd0 100644
--- a/fs/gfs2/eaops.h
+++ b/fs/gfs2/eaops.h
@@ -21,7 +21,6 @@ struct gfs2_eattr_operations {
21 21
22unsigned int gfs2_ea_name2type(const char *name, char **truncated_name); 22unsigned int gfs2_ea_name2type(const char *name, char **truncated_name);
23 23
24extern struct gfs2_eattr_operations gfs2_user_eaops;
25extern struct gfs2_eattr_operations gfs2_system_eaops; 24extern struct gfs2_eattr_operations gfs2_system_eaops;
26 25
27extern struct gfs2_eattr_operations *gfs2_ea_ops[]; 26extern struct gfs2_eattr_operations *gfs2_ea_ops[];
diff --git a/fs/gfs2/eattr.c b/fs/gfs2/eattr.c
index 8219d471f06c..d3316cab2be4 100644
--- a/fs/gfs2/eattr.c
+++ b/fs/gfs2/eattr.c
@@ -358,6 +358,7 @@ static int ea_remove_unstuffed(struct gfs2_inode *ip, struct buffer_head *bh,
358 return error; 358 return error;
359} 359}
360 360
361#if 0
361 362
362static int gfs2_ea_repack_i(struct gfs2_inode *ip) 363static int gfs2_ea_repack_i(struct gfs2_inode *ip)
363{ 364{
@@ -382,6 +383,8 @@ int gfs2_ea_repack(struct gfs2_inode *ip)
382 return error; 383 return error;
383} 384}
384 385
386#endif /* 0 */
387
385struct ea_list { 388struct ea_list {
386 struct gfs2_ea_request *ei_er; 389 struct gfs2_ea_request *ei_er;
387 unsigned int ei_size; 390 unsigned int ei_size;
diff --git a/fs/gfs2/eattr.h b/fs/gfs2/eattr.h
index 2b4152b1fcbe..ffd56686225b 100644
--- a/fs/gfs2/eattr.h
+++ b/fs/gfs2/eattr.h
@@ -61,8 +61,6 @@ struct gfs2_ea_location {
61 struct gfs2_ea_header *el_prev; 61 struct gfs2_ea_header *el_prev;
62}; 62};
63 63
64int gfs2_ea_repack(struct gfs2_inode *ip);
65
66int gfs2_ea_get_i(struct gfs2_inode *ip, struct gfs2_ea_request *er); 64int gfs2_ea_get_i(struct gfs2_inode *ip, struct gfs2_ea_request *er);
67int gfs2_ea_set_i(struct gfs2_inode *ip, struct gfs2_ea_request *er); 65int gfs2_ea_set_i(struct gfs2_inode *ip, struct gfs2_ea_request *er);
68int gfs2_ea_remove_i(struct gfs2_inode *ip, struct gfs2_ea_request *er); 66int gfs2_ea_remove_i(struct gfs2_inode *ip, struct gfs2_ea_request *er);
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index f82ecc0cc8fb..0a5a0e87b0a6 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -47,6 +47,8 @@ struct greedy {
47 47
48typedef void (*glock_examiner) (struct gfs2_glock * gl); 48typedef void (*glock_examiner) (struct gfs2_glock * gl);
49 49
50static int gfs2_dump_lockstate(struct gfs2_sbd *sdp);
51
50/** 52/**
51 * relaxed_state_ok - is a requested lock compatible with the current lock mode? 53 * relaxed_state_ok - is a requested lock compatible with the current lock mode?
52 * @actual: the current state of the lock 54 * @actual: the current state of the lock
@@ -228,8 +230,8 @@ static struct gfs2_glock *search_bucket(struct gfs2_gl_hash_bucket *bucket,
228 * Returns: NULL, or the struct gfs2_glock with the requested number 230 * Returns: NULL, or the struct gfs2_glock with the requested number
229 */ 231 */
230 232
231struct gfs2_glock *gfs2_glock_find(struct gfs2_sbd *sdp, 233static struct gfs2_glock *gfs2_glock_find(struct gfs2_sbd *sdp,
232 struct lm_lockname *name) 234 struct lm_lockname *name)
233{ 235{
234 struct gfs2_gl_hash_bucket *bucket = &sdp->sd_gl_hash[gl_hash(name)]; 236 struct gfs2_gl_hash_bucket *bucket = &sdp->sd_gl_hash[gl_hash(name)];
235 struct gfs2_glock *gl; 237 struct gfs2_glock *gl;
@@ -421,8 +423,9 @@ void gfs2_holder_uninit(struct gfs2_holder *gh)
421 * Returns: the holder structure, NULL on ENOMEM 423 * Returns: the holder structure, NULL on ENOMEM
422 */ 424 */
423 425
424struct gfs2_holder *gfs2_holder_get(struct gfs2_glock *gl, unsigned int state, 426static struct gfs2_holder *gfs2_holder_get(struct gfs2_glock *gl,
425 int flags, gfp_t gfp_flags) 427 unsigned int state,
428 int flags, gfp_t gfp_flags)
426{ 429{
427 struct gfs2_holder *gh; 430 struct gfs2_holder *gh;
428 431
@@ -442,7 +445,7 @@ struct gfs2_holder *gfs2_holder_get(struct gfs2_glock *gl, unsigned int state,
442 * 445 *
443 */ 446 */
444 447
445void gfs2_holder_put(struct gfs2_holder *gh) 448static void gfs2_holder_put(struct gfs2_holder *gh)
446{ 449{
447 gfs2_holder_uninit(gh); 450 gfs2_holder_uninit(gh);
448 kfree(gh); 451 kfree(gh);
@@ -674,7 +677,7 @@ void gfs2_glmutex_lock(struct gfs2_glock *gl)
674 * Returns: 1 if the glock is acquired 677 * Returns: 1 if the glock is acquired
675 */ 678 */
676 679
677int gfs2_glmutex_trylock(struct gfs2_glock *gl) 680static int gfs2_glmutex_trylock(struct gfs2_glock *gl)
678{ 681{
679 int acquired = 1; 682 int acquired = 1;
680 683
@@ -1301,7 +1304,8 @@ void gfs2_glock_dq(struct gfs2_holder *gh)
1301 * 1304 *
1302 */ 1305 */
1303 1306
1304void gfs2_glock_prefetch(struct gfs2_glock *gl, unsigned int state, int flags) 1307static void gfs2_glock_prefetch(struct gfs2_glock *gl, unsigned int state,
1308 int flags)
1305{ 1309{
1306 struct gfs2_glock_operations *glops = gl->gl_ops; 1310 struct gfs2_glock_operations *glops = gl->gl_ops;
1307 1311
@@ -1329,7 +1333,7 @@ void gfs2_glock_prefetch(struct gfs2_glock *gl, unsigned int state, int flags)
1329 * @gl: the glock 1333 * @gl: the glock
1330 * 1334 *
1331 */ 1335 */
1332 1336#if 0
1333void gfs2_glock_force_drop(struct gfs2_glock *gl) 1337void gfs2_glock_force_drop(struct gfs2_glock *gl)
1334{ 1338{
1335 struct gfs2_holder gh; 1339 struct gfs2_holder gh;
@@ -1345,6 +1349,7 @@ void gfs2_glock_force_drop(struct gfs2_glock *gl)
1345 wait_for_completion(&gh.gh_wait); 1349 wait_for_completion(&gh.gh_wait);
1346 gfs2_holder_uninit(&gh); 1350 gfs2_holder_uninit(&gh);
1347} 1351}
1352#endif /* 0 */
1348 1353
1349static void greedy_work(void *data) 1354static void greedy_work(void *data)
1350{ 1355{
@@ -1697,6 +1702,7 @@ void gfs2_lvb_unhold(struct gfs2_glock *gl)
1697 gfs2_glock_put(gl); 1702 gfs2_glock_put(gl);
1698} 1703}
1699 1704
1705#if 0
1700void gfs2_lvb_sync(struct gfs2_glock *gl) 1706void gfs2_lvb_sync(struct gfs2_glock *gl)
1701{ 1707{
1702 gfs2_glmutex_lock(gl); 1708 gfs2_glmutex_lock(gl);
@@ -1707,6 +1713,7 @@ void gfs2_lvb_sync(struct gfs2_glock *gl)
1707 1713
1708 gfs2_glmutex_unlock(gl); 1714 gfs2_glmutex_unlock(gl);
1709} 1715}
1716#endif /* 0 */
1710 1717
1711static void blocking_cb(struct gfs2_sbd *sdp, struct lm_lockname *name, 1718static void blocking_cb(struct gfs2_sbd *sdp, struct lm_lockname *name,
1712 unsigned int state) 1719 unsigned int state)
@@ -2307,7 +2314,7 @@ static int dump_glock(struct gfs2_glock *gl)
2307 * 2314 *
2308 */ 2315 */
2309 2316
2310int gfs2_dump_lockstate(struct gfs2_sbd *sdp) 2317static int gfs2_dump_lockstate(struct gfs2_sbd *sdp)
2311{ 2318{
2312 struct gfs2_gl_hash_bucket *bucket; 2319 struct gfs2_gl_hash_bucket *bucket;
2313 struct gfs2_glock *gl; 2320 struct gfs2_glock *gl;
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
76struct gfs2_glock *gfs2_glock_find(struct gfs2_sbd *sdp,
77 struct lm_lockname *name);
78int gfs2_glock_get(struct gfs2_sbd *sdp, 76int 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,
85void gfs2_holder_reinit(unsigned int state, unsigned flags, 83void gfs2_holder_reinit(unsigned int state, unsigned flags,
86 struct gfs2_holder *gh); 84 struct gfs2_holder *gh);
87void gfs2_holder_uninit(struct gfs2_holder *gh); 85void gfs2_holder_uninit(struct gfs2_holder *gh);
88struct gfs2_holder *gfs2_holder_get(struct gfs2_glock *gl, unsigned int state,
89 int flags, gfp_t gfp_flags);
90void gfs2_holder_put(struct gfs2_holder *gh);
91 86
92void gfs2_glock_xmote_th(struct gfs2_glock *gl, unsigned int state, int flags); 87void gfs2_glock_xmote_th(struct gfs2_glock *gl, unsigned int state, int flags);
93void gfs2_glock_drop_th(struct gfs2_glock *gl); 88void gfs2_glock_drop_th(struct gfs2_glock *gl);
94 89
95void gfs2_glmutex_lock(struct gfs2_glock *gl); 90void gfs2_glmutex_lock(struct gfs2_glock *gl);
96int gfs2_glmutex_trylock(struct gfs2_glock *gl);
97void gfs2_glmutex_unlock(struct gfs2_glock *gl); 91void gfs2_glmutex_unlock(struct gfs2_glock *gl);
98 92
99int gfs2_glock_nq(struct gfs2_holder *gh); 93int gfs2_glock_nq(struct gfs2_holder *gh);
@@ -101,9 +95,6 @@ int gfs2_glock_poll(struct gfs2_holder *gh);
101int gfs2_glock_wait(struct gfs2_holder *gh); 95int gfs2_glock_wait(struct gfs2_holder *gh);
102void gfs2_glock_dq(struct gfs2_holder *gh); 96void gfs2_glock_dq(struct gfs2_holder *gh);
103 97
104void gfs2_glock_prefetch(struct gfs2_glock *gl, unsigned int state, int flags);
105void gfs2_glock_force_drop(struct gfs2_glock *gl);
106
107int gfs2_glock_be_greedy(struct gfs2_glock *gl, unsigned int time); 98int gfs2_glock_be_greedy(struct gfs2_glock *gl, unsigned int time);
108 99
109void gfs2_glock_dq_uninit(struct gfs2_holder *gh); 100void 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
149int gfs2_lvb_hold(struct gfs2_glock *gl); 140int gfs2_lvb_hold(struct gfs2_glock *gl);
150void gfs2_lvb_unhold(struct gfs2_glock *gl); 141void gfs2_lvb_unhold(struct gfs2_glock *gl);
151void gfs2_lvb_sync(struct gfs2_glock *gl);
152 142
153void gfs2_glock_cb(lm_fsdata_t *fsdata, unsigned int type, void *data); 143void 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);
161void gfs2_scand_internal(struct gfs2_sbd *sdp); 151void gfs2_scand_internal(struct gfs2_sbd *sdp);
162void gfs2_gl_hash_clear(struct gfs2_sbd *sdp, int wait); 152void gfs2_gl_hash_clear(struct gfs2_sbd *sdp, int wait);
163 153
164int gfs2_dump_lockstate(struct gfs2_sbd *sdp);
165
166#endif /* __GLOCK_DOT_H__ */ 154#endif /* __GLOCK_DOT_H__ */
diff --git a/fs/gfs2/lm.c b/fs/gfs2/lm.c
index 5b3c56d2df2f..06a785e9b582 100644
--- a/fs/gfs2/lm.c
+++ b/fs/gfs2/lm.c
@@ -188,11 +188,13 @@ void gfs2_lm_unhold_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char *lvb)
188 sdp->sd_lockstruct.ls_ops->lm_unhold_lvb(lock, lvb); 188 sdp->sd_lockstruct.ls_ops->lm_unhold_lvb(lock, lvb);
189} 189}
190 190
191#if 0
191void gfs2_lm_sync_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char *lvb) 192void gfs2_lm_sync_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char *lvb)
192{ 193{
193 if (likely(!test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) 194 if (likely(!test_bit(SDF_SHUTDOWN, &sdp->sd_flags)))
194 sdp->sd_lockstruct.ls_ops->lm_sync_lvb(lock, lvb); 195 sdp->sd_lockstruct.ls_ops->lm_sync_lvb(lock, lvb);
195} 196}
197#endif /* 0 */
196 198
197int gfs2_lm_plock_get(struct gfs2_sbd *sdp, struct lm_lockname *name, 199int gfs2_lm_plock_get(struct gfs2_sbd *sdp, struct lm_lockname *name,
198 struct file *file, struct file_lock *fl) 200 struct file *file, struct file_lock *fl)
diff --git a/fs/gfs2/lm.h b/fs/gfs2/lm.h
index ec812424fdec..4ee5c34434bc 100644
--- a/fs/gfs2/lm.h
+++ b/fs/gfs2/lm.h
@@ -26,7 +26,6 @@ unsigned int gfs2_lm_unlock(struct gfs2_sbd *sdp, lm_lock_t *lock,
26void gfs2_lm_cancel(struct gfs2_sbd *sdp, lm_lock_t *lock); 26void gfs2_lm_cancel(struct gfs2_sbd *sdp, lm_lock_t *lock);
27int gfs2_lm_hold_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char **lvbp); 27int gfs2_lm_hold_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char **lvbp);
28void gfs2_lm_unhold_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char *lvb); 28void gfs2_lm_unhold_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char *lvb);
29void gfs2_lm_sync_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char *lvb);
30int gfs2_lm_plock_get(struct gfs2_sbd *sdp, 29int gfs2_lm_plock_get(struct gfs2_sbd *sdp,
31 struct lm_lockname *name, 30 struct lm_lockname *name,
32 struct file *file, struct file_lock *fl); 31 struct file *file, struct file_lock *fl);
diff --git a/fs/gfs2/locking/dlm/lock.c b/fs/gfs2/locking/dlm/lock.c
index a309b799dff1..3b0dfd7ae26e 100644
--- a/fs/gfs2/locking/dlm/lock.c
+++ b/fs/gfs2/locking/dlm/lock.c
@@ -158,8 +158,8 @@ static inline void make_strname(struct lm_lockname *lockname,
158 str->namelen = GDLM_STRNAME_BYTES; 158 str->namelen = GDLM_STRNAME_BYTES;
159} 159}
160 160
161int gdlm_create_lp(struct gdlm_ls *ls, struct lm_lockname *name, 161static int gdlm_create_lp(struct gdlm_ls *ls, struct lm_lockname *name,
162 struct gdlm_lock **lpp) 162 struct gdlm_lock **lpp)
163{ 163{
164 struct gdlm_lock *lp; 164 struct gdlm_lock *lp;
165 165
@@ -276,7 +276,7 @@ unsigned int gdlm_do_lock(struct gdlm_lock *lp)
276 return LM_OUT_ASYNC; 276 return LM_OUT_ASYNC;
277} 277}
278 278
279unsigned int gdlm_do_unlock(struct gdlm_lock *lp) 279static unsigned int gdlm_do_unlock(struct gdlm_lock *lp)
280{ 280{
281 struct gdlm_ls *ls = lp->ls; 281 struct gdlm_ls *ls = lp->ls;
282 unsigned int lkf = 0; 282 unsigned int lkf = 0;
@@ -378,7 +378,7 @@ void gdlm_cancel(lm_lock_t *lock)
378 clear_bit(LFL_DLM_CANCEL, &lp->flags); 378 clear_bit(LFL_DLM_CANCEL, &lp->flags);
379} 379}
380 380
381int gdlm_add_lvb(struct gdlm_lock *lp) 381static int gdlm_add_lvb(struct gdlm_lock *lp)
382{ 382{
383 char *lvb; 383 char *lvb;
384 384
@@ -391,7 +391,7 @@ int gdlm_add_lvb(struct gdlm_lock *lp)
391 return 0; 391 return 0;
392} 392}
393 393
394void gdlm_del_lvb(struct gdlm_lock *lp) 394static void gdlm_del_lvb(struct gdlm_lock *lp)
395{ 395{
396 kfree(lp->lvb); 396 kfree(lp->lvb);
397 lp->lvb = NULL; 397 lp->lvb = NULL;
diff --git a/fs/gfs2/locking/dlm/lock_dlm.h b/fs/gfs2/locking/dlm/lock_dlm.h
index e6c1e4786fec..530c2f542584 100644
--- a/fs/gfs2/locking/dlm/lock_dlm.h
+++ b/fs/gfs2/locking/dlm/lock_dlm.h
@@ -162,12 +162,8 @@ int16_t gdlm_make_lmstate(int16_t);
162void gdlm_queue_delayed(struct gdlm_lock *); 162void gdlm_queue_delayed(struct gdlm_lock *);
163void gdlm_submit_delayed(struct gdlm_ls *); 163void gdlm_submit_delayed(struct gdlm_ls *);
164int gdlm_release_all_locks(struct gdlm_ls *); 164int gdlm_release_all_locks(struct gdlm_ls *);
165int gdlm_create_lp(struct gdlm_ls *, struct lm_lockname *, struct gdlm_lock **);
166void gdlm_delete_lp(struct gdlm_lock *); 165void gdlm_delete_lp(struct gdlm_lock *);
167int gdlm_add_lvb(struct gdlm_lock *);
168void gdlm_del_lvb(struct gdlm_lock *);
169unsigned int gdlm_do_lock(struct gdlm_lock *); 166unsigned int gdlm_do_lock(struct gdlm_lock *);
170unsigned int gdlm_do_unlock(struct gdlm_lock *);
171 167
172int gdlm_get_lock(lm_lockspace_t *, struct lm_lockname *, lm_lock_t **); 168int gdlm_get_lock(lm_lockspace_t *, struct lm_lockname *, lm_lock_t **);
173void gdlm_put_lock(lm_lock_t *); 169void gdlm_put_lock(lm_lock_t *);
diff --git a/fs/gfs2/locking/dlm/main.c b/fs/gfs2/locking/dlm/main.c
index 3c9adf18fd9c..89728c91665f 100644
--- a/fs/gfs2/locking/dlm/main.c
+++ b/fs/gfs2/locking/dlm/main.c
@@ -16,7 +16,7 @@ extern int gdlm_drop_period;
16 16
17extern struct lm_lockops gdlm_ops; 17extern struct lm_lockops gdlm_ops;
18 18
19int __init init_lock_dlm(void) 19static int __init init_lock_dlm(void)
20{ 20{
21 int error; 21 int error;
22 22
@@ -48,7 +48,7 @@ int __init init_lock_dlm(void)
48 return 0; 48 return 0;
49} 49}
50 50
51void __exit exit_lock_dlm(void) 51static void __exit exit_lock_dlm(void)
52{ 52{
53 gdlm_plock_exit(); 53 gdlm_plock_exit();
54 gdlm_sysfs_exit(); 54 gdlm_sysfs_exit();
diff --git a/fs/gfs2/locking/nolock/main.c b/fs/gfs2/locking/nolock/main.c
index ecd37371eba5..97ffac5cdefb 100644
--- a/fs/gfs2/locking/nolock/main.c
+++ b/fs/gfs2/locking/nolock/main.c
@@ -21,7 +21,7 @@ struct nolock_lockspace {
21 unsigned int nl_lvb_size; 21 unsigned int nl_lvb_size;
22}; 22};
23 23
24struct lm_lockops nolock_ops; 24static struct lm_lockops nolock_ops;
25 25
26static int nolock_mount(char *table_name, char *host_data, 26static int nolock_mount(char *table_name, char *host_data,
27 lm_callback_t cb, lm_fsdata_t *fsdata, 27 lm_callback_t cb, lm_fsdata_t *fsdata,
@@ -208,7 +208,7 @@ static void nolock_recovery_done(lm_lockspace_t *lockspace, unsigned int jid,
208{ 208{
209} 209}
210 210
211struct lm_lockops nolock_ops = { 211static struct lm_lockops nolock_ops = {
212 .lm_proto_name = "lock_nolock", 212 .lm_proto_name = "lock_nolock",
213 .lm_mount = nolock_mount, 213 .lm_mount = nolock_mount,
214 .lm_others_may_mount = nolock_others_may_mount, 214 .lm_others_may_mount = nolock_others_may_mount,
@@ -229,7 +229,7 @@ struct lm_lockops nolock_ops = {
229 .lm_owner = THIS_MODULE, 229 .lm_owner = THIS_MODULE,
230}; 230};
231 231
232int __init init_nolock(void) 232static int __init init_nolock(void)
233{ 233{
234 int error; 234 int error;
235 235
@@ -245,7 +245,7 @@ int __init init_nolock(void)
245 return 0; 245 return 0;
246} 246}
247 247
248void __exit exit_nolock(void) 248static void __exit exit_nolock(void)
249{ 249{
250 gfs_unregister_lockproto(&nolock_ops); 250 gfs_unregister_lockproto(&nolock_ops);
251} 251}
diff --git a/fs/gfs2/lvb.c b/fs/gfs2/lvb.c
index 63b815dad8e7..9d72872c6f73 100644
--- a/fs/gfs2/lvb.c
+++ b/fs/gfs2/lvb.c
@@ -43,6 +43,7 @@ void gfs2_quota_lvb_out(struct gfs2_quota_lvb *qb, char *lvb)
43 str->qb_value = cpu_to_be64(qb->qb_value); 43 str->qb_value = cpu_to_be64(qb->qb_value);
44} 44}
45 45
46#if 0
46void gfs2_quota_lvb_print(struct gfs2_quota_lvb *qb) 47void gfs2_quota_lvb_print(struct gfs2_quota_lvb *qb)
47{ 48{
48 pv(qb, qb_magic, "%u"); 49 pv(qb, qb_magic, "%u");
@@ -50,4 +51,5 @@ void gfs2_quota_lvb_print(struct gfs2_quota_lvb *qb)
50 pv(qb, qb_warn, "%llu"); 51 pv(qb, qb_warn, "%llu");
51 pv(qb, qb_value, "%lld"); 52 pv(qb, qb_value, "%lld");
52} 53}
54#endif /* 0 */
53 55
diff --git a/fs/gfs2/lvb.h b/fs/gfs2/lvb.h
index 1b9eb69b9534..3c4c17405e9a 100644
--- a/fs/gfs2/lvb.h
+++ b/fs/gfs2/lvb.h
@@ -14,7 +14,6 @@
14 14
15void gfs2_quota_lvb_in(struct gfs2_quota_lvb *qb, char *lvb); 15void gfs2_quota_lvb_in(struct gfs2_quota_lvb *qb, char *lvb);
16void gfs2_quota_lvb_out(struct gfs2_quota_lvb *qb, char *lvb); 16void gfs2_quota_lvb_out(struct gfs2_quota_lvb *qb, char *lvb);
17void gfs2_quota_lvb_print(struct gfs2_quota_lvb *qb);
18 17
19#endif /* __LVB_DOT_H__ */ 18#endif /* __LVB_DOT_H__ */
20 19
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c
index acfc944ce13e..b11e659bdd9e 100644
--- a/fs/gfs2/ondisk.c
+++ b/fs/gfs2/ondisk.c
@@ -28,7 +28,7 @@
28 * @count: the number of bytes 28 * @count: the number of bytes
29 * 29 *
30 */ 30 */
31 31#if 0
32static void print_array(char *title, char *buf, int count) 32static void print_array(char *title, char *buf, int count)
33{ 33{
34 int x; 34 int x;
@@ -42,6 +42,7 @@ static void print_array(char *title, char *buf, int count)
42 if (x % 16) 42 if (x % 16)
43 printk("\n"); 43 printk("\n");
44} 44}
45#endif /* 0 */
45 46
46/* 47/*
47 * gfs2_xxx_in - read in an xxx struct 48 * gfs2_xxx_in - read in an xxx struct
@@ -72,7 +73,7 @@ void gfs2_inum_out(const struct gfs2_inum *no, char *buf)
72 str->no_addr = cpu_to_be64(no->no_addr); 73 str->no_addr = cpu_to_be64(no->no_addr);
73} 74}
74 75
75void gfs2_inum_print(struct gfs2_inum *no) 76static void gfs2_inum_print(struct gfs2_inum *no)
76{ 77{
77 pv(no, no_formal_ino, "%llu"); 78 pv(no, no_formal_ino, "%llu");
78 pv(no, no_addr, "%llu"); 79 pv(no, no_addr, "%llu");
@@ -96,7 +97,7 @@ static void gfs2_meta_header_out(struct gfs2_meta_header *mh, char *buf)
96 str->mh_format = cpu_to_be32(mh->mh_format); 97 str->mh_format = cpu_to_be32(mh->mh_format);
97} 98}
98 99
99void gfs2_meta_header_print(struct gfs2_meta_header *mh) 100static void gfs2_meta_header_print(struct gfs2_meta_header *mh)
100{ 101{
101 pv(mh, mh_magic, "0x%.8X"); 102 pv(mh, mh_magic, "0x%.8X");
102 pv(mh, mh_type, "%u"); 103 pv(mh, mh_type, "%u");
@@ -121,6 +122,7 @@ void gfs2_sb_in(struct gfs2_sb *sb, char *buf)
121 memcpy(sb->sb_locktable, str->sb_locktable, GFS2_LOCKNAME_LEN); 122 memcpy(sb->sb_locktable, str->sb_locktable, GFS2_LOCKNAME_LEN);
122} 123}
123 124
125#if 0
124void gfs2_sb_print(struct gfs2_sb *sb) 126void gfs2_sb_print(struct gfs2_sb *sb)
125{ 127{
126 gfs2_meta_header_print(&sb->sb_header); 128 gfs2_meta_header_print(&sb->sb_header);
@@ -136,6 +138,7 @@ void gfs2_sb_print(struct gfs2_sb *sb)
136 pv(sb, sb_lockproto, "%s"); 138 pv(sb, sb_lockproto, "%s");
137 pv(sb, sb_locktable, "%s"); 139 pv(sb, sb_locktable, "%s");
138} 140}
141#endif /* 0 */
139 142
140void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf) 143void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf)
141{ 144{
@@ -149,6 +152,7 @@ void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf)
149 152
150} 153}
151 154
155#if 0
152void gfs2_rindex_out(struct gfs2_rindex *ri, char *buf) 156void gfs2_rindex_out(struct gfs2_rindex *ri, char *buf)
153{ 157{
154 struct gfs2_rindex *str = (struct gfs2_rindex *)buf; 158 struct gfs2_rindex *str = (struct gfs2_rindex *)buf;
@@ -163,6 +167,8 @@ void gfs2_rindex_out(struct gfs2_rindex *ri, char *buf)
163 memset(str->ri_reserved, 0, sizeof(str->ri_reserved)); 167 memset(str->ri_reserved, 0, sizeof(str->ri_reserved));
164} 168}
165 169
170#endif /* 0 */
171
166void gfs2_rindex_print(struct gfs2_rindex *ri) 172void gfs2_rindex_print(struct gfs2_rindex *ri)
167{ 173{
168 pv(ri, ri_addr, "%llu"); 174 pv(ri, ri_addr, "%llu");
@@ -196,6 +202,7 @@ void gfs2_rgrp_out(struct gfs2_rgrp *rg, char *buf)
196 memset(&str->rg_reserved, 0, sizeof(str->rg_reserved)); 202 memset(&str->rg_reserved, 0, sizeof(str->rg_reserved));
197} 203}
198 204
205#if 0
199void gfs2_rgrp_print(struct gfs2_rgrp *rg) 206void gfs2_rgrp_print(struct gfs2_rgrp *rg)
200{ 207{
201 gfs2_meta_header_print(&rg->rg_header); 208 gfs2_meta_header_print(&rg->rg_header);
@@ -205,6 +212,7 @@ void gfs2_rgrp_print(struct gfs2_rgrp *rg)
205 212
206 pa(rg, rg_reserved, 36); 213 pa(rg, rg_reserved, 36);
207} 214}
215#endif /* 0 */
208 216
209void gfs2_quota_in(struct gfs2_quota *qu, char *buf) 217void gfs2_quota_in(struct gfs2_quota *qu, char *buf)
210{ 218{
@@ -215,6 +223,8 @@ void gfs2_quota_in(struct gfs2_quota *qu, char *buf)
215 qu->qu_value = be64_to_cpu(str->qu_value); 223 qu->qu_value = be64_to_cpu(str->qu_value);
216} 224}
217 225
226#if 0
227
218void gfs2_quota_out(struct gfs2_quota *qu, char *buf) 228void gfs2_quota_out(struct gfs2_quota *qu, char *buf)
219{ 229{
220 struct gfs2_quota *str = (struct gfs2_quota *)buf; 230 struct gfs2_quota *str = (struct gfs2_quota *)buf;
@@ -231,6 +241,8 @@ void gfs2_quota_print(struct gfs2_quota *qu)
231 pv(qu, qu_value, "%lld"); 241 pv(qu, qu_value, "%lld");
232} 242}
233 243
244#endif /* 0 */
245
234void gfs2_dinode_in(struct gfs2_dinode *di, char *buf) 246void gfs2_dinode_in(struct gfs2_dinode *di, char *buf)
235{ 247{
236 struct gfs2_dinode *str = (struct gfs2_dinode *)buf; 248 struct gfs2_dinode *str = (struct gfs2_dinode *)buf;
@@ -327,6 +339,8 @@ void gfs2_dinode_print(struct gfs2_dinode *di)
327 pv(di, di_eattr, "%llu"); 339 pv(di, di_eattr, "%llu");
328} 340}
329 341
342#if 0
343
330void gfs2_dirent_print(struct gfs2_dirent *de, char *name) 344void gfs2_dirent_print(struct gfs2_dirent *de, char *name)
331{ 345{
332 char buf[GFS2_FNAMESIZE + 1]; 346 char buf[GFS2_FNAMESIZE + 1];
@@ -394,6 +408,8 @@ void gfs2_ea_header_print(struct gfs2_ea_header *ea, char *name)
394 printk(KERN_INFO " name = %s\n", buf); 408 printk(KERN_INFO " name = %s\n", buf);
395} 409}
396 410
411#endif /* 0 */
412
397void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf) 413void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf)
398{ 414{
399 struct gfs2_log_header *str = (struct gfs2_log_header *)buf; 415 struct gfs2_log_header *str = (struct gfs2_log_header *)buf;
@@ -406,6 +422,8 @@ void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf)
406 lh->lh_hash = be32_to_cpu(str->lh_hash); 422 lh->lh_hash = be32_to_cpu(str->lh_hash);
407} 423}
408 424
425#if 0
426
409void gfs2_log_header_print(struct gfs2_log_header *lh) 427void gfs2_log_header_print(struct gfs2_log_header *lh)
410{ 428{
411 gfs2_meta_header_print(&lh->lh_header); 429 gfs2_meta_header_print(&lh->lh_header);
@@ -427,6 +445,8 @@ void gfs2_log_descriptor_print(struct gfs2_log_descriptor *ld)
427 pa(ld, ld_reserved, 32); 445 pa(ld, ld_reserved, 32);
428} 446}
429 447
448#endif /* 0 */
449
430void gfs2_inum_range_in(struct gfs2_inum_range *ir, char *buf) 450void gfs2_inum_range_in(struct gfs2_inum_range *ir, char *buf)
431{ 451{
432 struct gfs2_inum_range *str = (struct gfs2_inum_range *)buf; 452 struct gfs2_inum_range *str = (struct gfs2_inum_range *)buf;
@@ -443,11 +463,13 @@ void gfs2_inum_range_out(struct gfs2_inum_range *ir, char *buf)
443 str->ir_length = cpu_to_be64(ir->ir_length); 463 str->ir_length = cpu_to_be64(ir->ir_length);
444} 464}
445 465
466#if 0
446void gfs2_inum_range_print(struct gfs2_inum_range *ir) 467void gfs2_inum_range_print(struct gfs2_inum_range *ir)
447{ 468{
448 pv(ir, ir_start, "%llu"); 469 pv(ir, ir_start, "%llu");
449 pv(ir, ir_length, "%llu"); 470 pv(ir, ir_length, "%llu");
450} 471}
472#endif /* 0 */
451 473
452void gfs2_statfs_change_in(struct gfs2_statfs_change *sc, char *buf) 474void gfs2_statfs_change_in(struct gfs2_statfs_change *sc, char *buf)
453{ 475{
@@ -467,12 +489,14 @@ void gfs2_statfs_change_out(struct gfs2_statfs_change *sc, char *buf)
467 str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); 489 str->sc_dinodes = cpu_to_be64(sc->sc_dinodes);
468} 490}
469 491
492#if 0
470void gfs2_statfs_change_print(struct gfs2_statfs_change *sc) 493void gfs2_statfs_change_print(struct gfs2_statfs_change *sc)
471{ 494{
472 pv(sc, sc_total, "%lld"); 495 pv(sc, sc_total, "%lld");
473 pv(sc, sc_free, "%lld"); 496 pv(sc, sc_free, "%lld");
474 pv(sc, sc_dinodes, "%lld"); 497 pv(sc, sc_dinodes, "%lld");
475} 498}
499#endif /* 0 */
476 500
477void gfs2_unlinked_tag_in(struct gfs2_unlinked_tag *ut, char *buf) 501void gfs2_unlinked_tag_in(struct gfs2_unlinked_tag *ut, char *buf)
478{ 502{
@@ -491,12 +515,16 @@ void gfs2_unlinked_tag_out(struct gfs2_unlinked_tag *ut, char *buf)
491 str->__pad = 0; 515 str->__pad = 0;
492} 516}
493 517
518#if 0
519
494void gfs2_unlinked_tag_print(struct gfs2_unlinked_tag *ut) 520void gfs2_unlinked_tag_print(struct gfs2_unlinked_tag *ut)
495{ 521{
496 gfs2_inum_print(&ut->ut_inum); 522 gfs2_inum_print(&ut->ut_inum);
497 pv(ut, ut_flags, "%u"); 523 pv(ut, ut_flags, "%u");
498} 524}
499 525
526#endif /* 0 */
527
500void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf) 528void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf)
501{ 529{
502 struct gfs2_quota_change *str = (struct gfs2_quota_change *)buf; 530 struct gfs2_quota_change *str = (struct gfs2_quota_change *)buf;
@@ -506,6 +534,8 @@ void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf)
506 qc->qc_id = be32_to_cpu(str->qc_id); 534 qc->qc_id = be32_to_cpu(str->qc_id);
507} 535}
508 536
537#if 0
538
509void gfs2_quota_change_print(struct gfs2_quota_change *qc) 539void gfs2_quota_change_print(struct gfs2_quota_change *qc)
510{ 540{
511 pv(qc, qc_change, "%lld"); 541 pv(qc, qc_change, "%lld");
@@ -513,5 +543,5 @@ void gfs2_quota_change_print(struct gfs2_quota_change *qc)
513 pv(qc, qc_id, "%u"); 543 pv(qc, qc_id, "%u");
514} 544}
515 545
516 546#endif /* 0 */
517 547
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index 90e32a3dc50d..942c4c8b9f56 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -1086,6 +1086,7 @@ int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, uint32_t id)
1086 return error; 1086 return error;
1087} 1087}
1088 1088
1089#if 0
1089int gfs2_quota_read(struct gfs2_sbd *sdp, int user, uint32_t id, 1090int gfs2_quota_read(struct gfs2_sbd *sdp, int user, uint32_t id,
1090 struct gfs2_quota *q) 1091 struct gfs2_quota *q)
1091{ 1092{
@@ -1121,6 +1122,7 @@ int gfs2_quota_read(struct gfs2_sbd *sdp, int user, uint32_t id,
1121 1122
1122 return error; 1123 return error;
1123} 1124}
1125#endif /* 0 */
1124 1126
1125int gfs2_quota_init(struct gfs2_sbd *sdp) 1127int gfs2_quota_init(struct gfs2_sbd *sdp)
1126{ 1128{
diff --git a/fs/gfs2/quota.h b/fs/gfs2/quota.h
index 005529f6895d..1baeeb23d232 100644
--- a/fs/gfs2/quota.h
+++ b/fs/gfs2/quota.h
@@ -24,8 +24,6 @@ void gfs2_quota_change(struct gfs2_inode *ip, int64_t change,
24 24
25int gfs2_quota_sync(struct gfs2_sbd *sdp); 25int gfs2_quota_sync(struct gfs2_sbd *sdp);
26int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, uint32_t id); 26int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, uint32_t id);
27int gfs2_quota_read(struct gfs2_sbd *sdp, int user, uint32_t id,
28 struct gfs2_quota *q);
29 27
30int gfs2_quota_init(struct gfs2_sbd *sdp); 28int gfs2_quota_init(struct gfs2_sbd *sdp);
31void gfs2_quota_scan(struct gfs2_sbd *sdp); 29void gfs2_quota_scan(struct gfs2_sbd *sdp);
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index f0dbd2d7aadc..75a8def8d0bc 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -264,11 +264,6 @@ int gfs2_read_sb(struct gfs2_sbd *sdp, struct gfs2_glock *gl, int silent)
264 return 0; 264 return 0;
265} 265}
266 266
267int gfs2_do_upgrade(struct gfs2_sbd *sdp, struct gfs2_glock *sb_gl)
268{
269 return 0;
270}
271
272/** 267/**
273 * gfs2_jindex_hold - Grab a lock on the jindex 268 * gfs2_jindex_hold - Grab a lock on the jindex
274 * @sdp: The GFS2 superblock 269 * @sdp: The GFS2 superblock
@@ -837,7 +832,8 @@ struct lfcc {
837 * Returns: errno 832 * Returns: errno
838 */ 833 */
839 834
840int gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp, struct gfs2_holder *t_gh) 835static int gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp,
836 struct gfs2_holder *t_gh)
841{ 837{
842 struct gfs2_inode *ip; 838 struct gfs2_inode *ip;
843 struct gfs2_holder ji_gh; 839 struct gfs2_holder ji_gh;
diff --git a/fs/gfs2/super.h b/fs/gfs2/super.h
index 6abb7b5c8828..175afdde43bb 100644
--- a/fs/gfs2/super.h
+++ b/fs/gfs2/super.h
@@ -14,7 +14,6 @@ void gfs2_tune_init(struct gfs2_tune *gt);
14 14
15int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb *sb, int silent); 15int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb *sb, int silent);
16int gfs2_read_sb(struct gfs2_sbd *sdp, struct gfs2_glock *gl, int silent); 16int gfs2_read_sb(struct gfs2_sbd *sdp, struct gfs2_glock *gl, int silent);
17int gfs2_do_upgrade(struct gfs2_sbd *sdp, struct gfs2_glock *gl_sb);
18 17
19static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) 18static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp)
20{ 19{
@@ -46,7 +45,6 @@ int gfs2_statfs_sync(struct gfs2_sbd *sdp);
46int gfs2_statfs_i(struct gfs2_sbd *sdp, struct gfs2_statfs_change *sc); 45int gfs2_statfs_i(struct gfs2_sbd *sdp, struct gfs2_statfs_change *sc);
47int gfs2_statfs_slow(struct gfs2_sbd *sdp, struct gfs2_statfs_change *sc); 46int gfs2_statfs_slow(struct gfs2_sbd *sdp, struct gfs2_statfs_change *sc);
48 47
49int gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp, struct gfs2_holder *t_gh);
50int gfs2_freeze_fs(struct gfs2_sbd *sdp); 48int gfs2_freeze_fs(struct gfs2_sbd *sdp);
51void gfs2_unfreeze_fs(struct gfs2_sbd *sdp); 49void gfs2_unfreeze_fs(struct gfs2_sbd *sdp);
52 50
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h
index 3ab40917383f..4356e3864643 100644
--- a/include/linux/gfs2_ondisk.h
+++ b/include/linux/gfs2_ondisk.h
@@ -450,22 +450,8 @@ extern void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf);
450 450
451/* Printing functions */ 451/* Printing functions */
452 452
453extern void gfs2_inum_print(struct gfs2_inum *no);
454extern void gfs2_meta_header_print(struct gfs2_meta_header *mh);
455extern void gfs2_sb_print(struct gfs2_sb *sb);
456extern void gfs2_rindex_print(struct gfs2_rindex *ri); 453extern void gfs2_rindex_print(struct gfs2_rindex *ri);
457extern void gfs2_rgrp_print(struct gfs2_rgrp *rg);
458extern void gfs2_quota_print(struct gfs2_quota *qu);
459extern void gfs2_dinode_print(struct gfs2_dinode *di); 454extern void gfs2_dinode_print(struct gfs2_dinode *di);
460extern void gfs2_dirent_print(struct gfs2_dirent *de, char *name);
461extern void gfs2_leaf_print(struct gfs2_leaf *lf);
462extern void gfs2_ea_header_print(struct gfs2_ea_header *ea, char *name);
463extern void gfs2_log_header_print(struct gfs2_log_header *lh);
464extern void gfs2_log_descriptor_print(struct gfs2_log_descriptor *ld);
465extern void gfs2_inum_range_print(struct gfs2_inum_range *ir);
466extern void gfs2_statfs_change_print(struct gfs2_statfs_change *sc);
467extern void gfs2_unlinked_tag_print(struct gfs2_unlinked_tag *ut);
468extern void gfs2_quota_change_print(struct gfs2_quota_change *qc);
469 455
470#endif /* __KERNEL__ */ 456#endif /* __KERNEL__ */
471 457