aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r--fs/nfsd/nfs4callback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index d828662d737d..8d3d23c8a4d2 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -335,7 +335,7 @@ static struct rpc_procinfo nfs4_cb_procedures[] = {
335 335
336static struct rpc_version nfs_cb_version4 = { 336static struct rpc_version nfs_cb_version4 = {
337 .number = 1, 337 .number = 1,
338 .nrprocs = sizeof(nfs4_cb_procedures)/sizeof(nfs4_cb_procedures[0]), 338 .nrprocs = ARRAY_SIZE(nfs4_cb_procedures),
339 .procs = nfs4_cb_procedures 339 .procs = nfs4_cb_procedures
340}; 340};
341 341
@@ -411,7 +411,7 @@ nfsd4_probe_callback(struct nfs4_client *clp)
411 /* Initialize rpc_program */ 411 /* Initialize rpc_program */
412 program->name = "nfs4_cb"; 412 program->name = "nfs4_cb";
413 program->number = cb->cb_prog; 413 program->number = cb->cb_prog;
414 program->nrvers = sizeof(nfs_cb_version)/sizeof(nfs_cb_version[0]); 414 program->nrvers = ARRAY_SIZE(nfs_cb_version);
415 program->version = nfs_cb_version; 415 program->version = nfs_cb_version;
416 program->stats = stat; 416 program->stats = stat;
417 417