aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/locking/nolock/main.c
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 /fs/gfs2/locking/nolock/main.c
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>
Diffstat (limited to 'fs/gfs2/locking/nolock/main.c')
-rw-r--r--fs/gfs2/locking/nolock/main.c8
1 files changed, 4 insertions, 4 deletions
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}