X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fafs%2Fmain.c;h=a26979b732bfe86021a4865f2c3e808bc16f1293;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=955dbef62b693ceb48bf1eac439324c99a63e7e5;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/afs/main.c b/fs/afs/main.c index 955dbef62..a26979b73 100644 --- a/fs/afs/main.c +++ b/fs/afs/main.c @@ -58,7 +58,7 @@ static struct rxrpc_peer_ops afs_peer_ops = { }; struct list_head afs_cb_hash_tbl[AFS_CB_HASH_COUNT]; -spinlock_t afs_cb_hash_lock = SPIN_LOCK_UNLOCKED; +DEFINE_SPINLOCK(afs_cb_hash_lock); #ifdef AFS_CACHING_SUPPORT static struct cachefs_netfs_operations afs_cache_ops = { @@ -100,7 +100,7 @@ static int afs_init(void) goto error; #endif -#ifdef CONFIG_KEYS +#ifdef CONFIG_KEYS_TURNED_OFF ret = afs_key_register(); if (ret < 0) goto error_cache; @@ -142,7 +142,7 @@ static int afs_init(void) error_kafstimod: afs_kafstimod_stop(); error_keys: -#ifdef CONFIG_KEYS +#ifdef CONFIG_KEYS_TURNED_OFF afs_key_unregister(); error_cache: #endif @@ -169,7 +169,7 @@ static void __exit afs_exit(void) afs_kafstimod_stop(); afs_kafsasyncd_stop(); afs_cell_purge(); -#ifdef CONFIG_KEYS +#ifdef CONFIG_KEYS_TURNED_OFF afs_key_unregister(); #endif #ifdef AFS_CACHING_SUPPORT