diff options
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/bmap.c | 3 | ||||
-rw-r--r-- | fs/gfs2/bmap.h | 2 | ||||
-rw-r--r-- | fs/gfs2/dir.c | 8 | ||||
-rw-r--r-- | fs/gfs2/eaops.c | 2 | ||||
-rw-r--r-- | fs/gfs2/eaops.h | 1 | ||||
-rw-r--r-- | fs/gfs2/eattr.c | 3 | ||||
-rw-r--r-- | fs/gfs2/eattr.h | 2 | ||||
-rw-r--r-- | fs/gfs2/glock.c | 25 | ||||
-rw-r--r-- | fs/gfs2/glock.h | 12 | ||||
-rw-r--r-- | fs/gfs2/lm.c | 2 | ||||
-rw-r--r-- | fs/gfs2/lm.h | 1 | ||||
-rw-r--r-- | fs/gfs2/locking/dlm/lock.c | 10 | ||||
-rw-r--r-- | fs/gfs2/locking/dlm/lock_dlm.h | 4 | ||||
-rw-r--r-- | fs/gfs2/locking/dlm/main.c | 4 | ||||
-rw-r--r-- | fs/gfs2/locking/nolock/main.c | 8 | ||||
-rw-r--r-- | fs/gfs2/lvb.c | 2 | ||||
-rw-r--r-- | fs/gfs2/lvb.h | 1 | ||||
-rw-r--r-- | fs/gfs2/ondisk.c | 38 | ||||
-rw-r--r-- | fs/gfs2/quota.c | 2 | ||||
-rw-r--r-- | fs/gfs2/quota.h | 2 | ||||
-rw-r--r-- | fs/gfs2/super.c | 8 | ||||
-rw-r--r-- | fs/gfs2/super.h | 2 |
22 files changed, 79 insertions, 63 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 | |
63 | int gfs2_unstuffer_sync(struct gfs2_inode *ip, struct buffer_head *dibh, | 63 | int 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 @@ | |||
13 | typedef int (*gfs2_unstuffer_t) (struct gfs2_inode * ip, | 13 | typedef 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); |
16 | int gfs2_unstuffer_sync(struct gfs2_inode *ip, struct buffer_head *dibh, | ||
17 | uint64_t block, void *private); | ||
18 | int gfs2_unstuff_dinode(struct gfs2_inode *ip, gfs2_unstuffer_t unstuffer, | 16 | int 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 | */ |
672 | struct gfs2_dirent *gfs2_init_dirent(struct inode *inode, | 672 | static 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 | ||
170 | struct gfs2_eattr_operations gfs2_user_eaops = { | 170 | static 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 | ||
22 | unsigned int gfs2_ea_name2type(const char *name, char **truncated_name); | 22 | unsigned int gfs2_ea_name2type(const char *name, char **truncated_name); |
23 | 23 | ||
24 | extern struct gfs2_eattr_operations gfs2_user_eaops; | ||
25 | extern struct gfs2_eattr_operations gfs2_system_eaops; | 24 | extern struct gfs2_eattr_operations gfs2_system_eaops; |
26 | 25 | ||
27 | extern struct gfs2_eattr_operations *gfs2_ea_ops[]; | 26 | extern 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 | ||
362 | static int gfs2_ea_repack_i(struct gfs2_inode *ip) | 363 | static 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 | |||
385 | struct ea_list { | 388 | struct 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 | ||
64 | int gfs2_ea_repack(struct gfs2_inode *ip); | ||
65 | |||
66 | int gfs2_ea_get_i(struct gfs2_inode *ip, struct gfs2_ea_request *er); | 64 | int gfs2_ea_get_i(struct gfs2_inode *ip, struct gfs2_ea_request *er); |
67 | int gfs2_ea_set_i(struct gfs2_inode *ip, struct gfs2_ea_request *er); | 65 | int gfs2_ea_set_i(struct gfs2_inode *ip, struct gfs2_ea_request *er); |
68 | int gfs2_ea_remove_i(struct gfs2_inode *ip, struct gfs2_ea_request *er); | 66 | int 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 | ||
48 | typedef void (*glock_examiner) (struct gfs2_glock * gl); | 48 | typedef void (*glock_examiner) (struct gfs2_glock * gl); |
49 | 49 | ||
50 | static 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 | ||
231 | struct gfs2_glock *gfs2_glock_find(struct gfs2_sbd *sdp, | 233 | static 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 | ||
424 | struct gfs2_holder *gfs2_holder_get(struct gfs2_glock *gl, unsigned int state, | 426 | static 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 | ||
445 | void gfs2_holder_put(struct gfs2_holder *gh) | 448 | static 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 | ||
677 | int gfs2_glmutex_trylock(struct gfs2_glock *gl) | 680 | static 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 | ||
1304 | void gfs2_glock_prefetch(struct gfs2_glock *gl, unsigned int state, int flags) | 1307 | static 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 | |
1333 | void gfs2_glock_force_drop(struct gfs2_glock *gl) | 1337 | void 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 | ||
1349 | static void greedy_work(void *data) | 1354 | static 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 | ||
1700 | void gfs2_lvb_sync(struct gfs2_glock *gl) | 1706 | void 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 | ||
1711 | static void blocking_cb(struct gfs2_sbd *sdp, struct lm_lockname *name, | 1718 | static 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 | ||
2310 | int gfs2_dump_lockstate(struct gfs2_sbd *sdp) | 2317 | static 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 | ||
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__ */ |
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 | ||
191 | void gfs2_lm_sync_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char *lvb) | 192 | void 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 | ||
197 | int gfs2_lm_plock_get(struct gfs2_sbd *sdp, struct lm_lockname *name, | 199 | int 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, | |||
26 | void gfs2_lm_cancel(struct gfs2_sbd *sdp, lm_lock_t *lock); | 26 | void gfs2_lm_cancel(struct gfs2_sbd *sdp, lm_lock_t *lock); |
27 | int gfs2_lm_hold_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char **lvbp); | 27 | int gfs2_lm_hold_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char **lvbp); |
28 | void gfs2_lm_unhold_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char *lvb); | 28 | void gfs2_lm_unhold_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char *lvb); |
29 | void gfs2_lm_sync_lvb(struct gfs2_sbd *sdp, lm_lock_t *lock, char *lvb); | ||
30 | int gfs2_lm_plock_get(struct gfs2_sbd *sdp, | 29 | int 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 | ||
161 | int gdlm_create_lp(struct gdlm_ls *ls, struct lm_lockname *name, | 161 | static 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 | ||
279 | unsigned int gdlm_do_unlock(struct gdlm_lock *lp) | 279 | static 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 | ||
381 | int gdlm_add_lvb(struct gdlm_lock *lp) | 381 | static 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 | ||
394 | void gdlm_del_lvb(struct gdlm_lock *lp) | 394 | static 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); | |||
162 | void gdlm_queue_delayed(struct gdlm_lock *); | 162 | void gdlm_queue_delayed(struct gdlm_lock *); |
163 | void gdlm_submit_delayed(struct gdlm_ls *); | 163 | void gdlm_submit_delayed(struct gdlm_ls *); |
164 | int gdlm_release_all_locks(struct gdlm_ls *); | 164 | int gdlm_release_all_locks(struct gdlm_ls *); |
165 | int gdlm_create_lp(struct gdlm_ls *, struct lm_lockname *, struct gdlm_lock **); | ||
166 | void gdlm_delete_lp(struct gdlm_lock *); | 165 | void gdlm_delete_lp(struct gdlm_lock *); |
167 | int gdlm_add_lvb(struct gdlm_lock *); | ||
168 | void gdlm_del_lvb(struct gdlm_lock *); | ||
169 | unsigned int gdlm_do_lock(struct gdlm_lock *); | 166 | unsigned int gdlm_do_lock(struct gdlm_lock *); |
170 | unsigned int gdlm_do_unlock(struct gdlm_lock *); | ||
171 | 167 | ||
172 | int gdlm_get_lock(lm_lockspace_t *, struct lm_lockname *, lm_lock_t **); | 168 | int gdlm_get_lock(lm_lockspace_t *, struct lm_lockname *, lm_lock_t **); |
173 | void gdlm_put_lock(lm_lock_t *); | 169 | void 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 | ||
17 | extern struct lm_lockops gdlm_ops; | 17 | extern struct lm_lockops gdlm_ops; |
18 | 18 | ||
19 | int __init init_lock_dlm(void) | 19 | static 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 | ||
51 | void __exit exit_lock_dlm(void) | 51 | static 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 | ||
24 | struct lm_lockops nolock_ops; | 24 | static struct lm_lockops nolock_ops; |
25 | 25 | ||
26 | static int nolock_mount(char *table_name, char *host_data, | 26 | static 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 | ||
211 | struct lm_lockops nolock_ops = { | 211 | static 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 | ||
232 | int __init init_nolock(void) | 232 | static 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 | ||
248 | void __exit exit_nolock(void) | 248 | static 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 | ||
46 | void gfs2_quota_lvb_print(struct gfs2_quota_lvb *qb) | 47 | void 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 | ||
15 | void gfs2_quota_lvb_in(struct gfs2_quota_lvb *qb, char *lvb); | 15 | void gfs2_quota_lvb_in(struct gfs2_quota_lvb *qb, char *lvb); |
16 | void gfs2_quota_lvb_out(struct gfs2_quota_lvb *qb, char *lvb); | 16 | void gfs2_quota_lvb_out(struct gfs2_quota_lvb *qb, char *lvb); |
17 | void 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 | |
32 | static void print_array(char *title, char *buf, int count) | 32 | static 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 | ||
75 | void gfs2_inum_print(struct gfs2_inum *no) | 76 | static 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 | ||
99 | void gfs2_meta_header_print(struct gfs2_meta_header *mh) | 100 | static 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 | ||
124 | void gfs2_sb_print(struct gfs2_sb *sb) | 126 | void 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 | ||
140 | void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf) | 143 | void 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 | ||
152 | void gfs2_rindex_out(struct gfs2_rindex *ri, char *buf) | 156 | void 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 | |||
166 | void gfs2_rindex_print(struct gfs2_rindex *ri) | 172 | void 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 | ||
199 | void gfs2_rgrp_print(struct gfs2_rgrp *rg) | 206 | void 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 | ||
209 | void gfs2_quota_in(struct gfs2_quota *qu, char *buf) | 217 | void 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 | |||
218 | void gfs2_quota_out(struct gfs2_quota *qu, char *buf) | 228 | void 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 | |||
234 | void gfs2_dinode_in(struct gfs2_dinode *di, char *buf) | 246 | void 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 | |||
330 | void gfs2_dirent_print(struct gfs2_dirent *de, char *name) | 344 | void 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 | |||
397 | void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf) | 413 | void 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 | |||
409 | void gfs2_log_header_print(struct gfs2_log_header *lh) | 427 | void 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 | |||
430 | void gfs2_inum_range_in(struct gfs2_inum_range *ir, char *buf) | 450 | void 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 | ||
446 | void gfs2_inum_range_print(struct gfs2_inum_range *ir) | 467 | void 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 | ||
452 | void gfs2_statfs_change_in(struct gfs2_statfs_change *sc, char *buf) | 474 | void 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 | ||
470 | void gfs2_statfs_change_print(struct gfs2_statfs_change *sc) | 493 | void 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 | ||
477 | void gfs2_unlinked_tag_in(struct gfs2_unlinked_tag *ut, char *buf) | 501 | void 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 | |||
494 | void gfs2_unlinked_tag_print(struct gfs2_unlinked_tag *ut) | 520 | void 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 | |||
500 | void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf) | 528 | void 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 | |||
509 | void gfs2_quota_change_print(struct gfs2_quota_change *qc) | 539 | void 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 | ||
1089 | int gfs2_quota_read(struct gfs2_sbd *sdp, int user, uint32_t id, | 1090 | int 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 | ||
1125 | int gfs2_quota_init(struct gfs2_sbd *sdp) | 1127 | int 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 | ||
25 | int gfs2_quota_sync(struct gfs2_sbd *sdp); | 25 | int gfs2_quota_sync(struct gfs2_sbd *sdp); |
26 | int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, uint32_t id); | 26 | int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, uint32_t id); |
27 | int gfs2_quota_read(struct gfs2_sbd *sdp, int user, uint32_t id, | ||
28 | struct gfs2_quota *q); | ||
29 | 27 | ||
30 | int gfs2_quota_init(struct gfs2_sbd *sdp); | 28 | int gfs2_quota_init(struct gfs2_sbd *sdp); |
31 | void gfs2_quota_scan(struct gfs2_sbd *sdp); | 29 | void 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 | ||
267 | int 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 | ||
840 | int gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp, struct gfs2_holder *t_gh) | 835 | static 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 | ||
15 | int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb *sb, int silent); | 15 | int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb *sb, int silent); |
16 | int gfs2_read_sb(struct gfs2_sbd *sdp, struct gfs2_glock *gl, int silent); | 16 | int gfs2_read_sb(struct gfs2_sbd *sdp, struct gfs2_glock *gl, int silent); |
17 | int gfs2_do_upgrade(struct gfs2_sbd *sdp, struct gfs2_glock *gl_sb); | ||
18 | 17 | ||
19 | static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) | 18 | static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) |
20 | { | 19 | { |
@@ -46,7 +45,6 @@ int gfs2_statfs_sync(struct gfs2_sbd *sdp); | |||
46 | int gfs2_statfs_i(struct gfs2_sbd *sdp, struct gfs2_statfs_change *sc); | 45 | int gfs2_statfs_i(struct gfs2_sbd *sdp, struct gfs2_statfs_change *sc); |
47 | int gfs2_statfs_slow(struct gfs2_sbd *sdp, struct gfs2_statfs_change *sc); | 46 | int gfs2_statfs_slow(struct gfs2_sbd *sdp, struct gfs2_statfs_change *sc); |
48 | 47 | ||
49 | int gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp, struct gfs2_holder *t_gh); | ||
50 | int gfs2_freeze_fs(struct gfs2_sbd *sdp); | 48 | int gfs2_freeze_fs(struct gfs2_sbd *sdp); |
51 | void gfs2_unfreeze_fs(struct gfs2_sbd *sdp); | 49 | void gfs2_unfreeze_fs(struct gfs2_sbd *sdp); |
52 | 50 | ||