X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fafs%2Fcmservice.c;h=9eef6bf156ab5a4c804e3a0712a1b436d22988e1;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=f87d5a7162ff991eb5d9c127e1c0664a12322b33;hpb=3944158a6d33f94668dbd6bdc32ff5c67bb53ec2;p=linux-2.6.git diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice.c index f87d5a716..9eef6bf15 100644 --- a/fs/afs/cmservice.c +++ b/fs/afs/cmservice.c @@ -24,7 +24,7 @@ #include "internal.h" static unsigned afscm_usage; /* AFS cache manager usage count */ -static DECLARE_RWSEM(afscm_sem); /* AFS cache manager start/stop semaphore */ +static struct rw_semaphore afscm_sem; /* AFS cache manager start/stop semaphore */ static int afscm_new_call(struct rxrpc_call *call); static void afscm_attention(struct rxrpc_call *call); @@ -94,7 +94,7 @@ static struct rxrpc_service AFSCM_service = { .error_func = afscm_error, .aemap_func = afscm_aemap, .ops_begin = &AFSCM_ops[0], - .ops_end = &AFSCM_ops[ARRAY_SIZE(AFSCM_ops)], + .ops_end = &AFSCM_ops[sizeof(AFSCM_ops) / sizeof(AFSCM_ops[0])], }; static DECLARE_COMPLETION(kafscmd_alive);