aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-03-14 14:10:08 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-03-19 18:00:13 -0400
commit2d76743227028a26f884284aade03d1e43f4f249 (patch)
tree9e32332e4f7945fead1964fe7b9e568b3dd64940 /fs/nfs/super.c
parent7bda2cdf484a00e52b0ed925e99d4bf4696b2c7a (diff)
NFS: numeric mount parameters are unsigned
Clean up: use %u instead of %d when displaying NFS mount options. Nit: Fix reporting of "namlen=" option in nfs_show_mount_stats. The mount option is called "namlen" without the "e". Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index fcf4b982c885..53a67c6d4d2a 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -463,17 +463,17 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss,
463 const struct proc_nfs_info *nfs_infop; 463 const struct proc_nfs_info *nfs_infop;
464 struct nfs_client *clp = nfss->nfs_client; 464 struct nfs_client *clp = nfss->nfs_client;
465 465
466 seq_printf(m, ",vers=%d", clp->rpc_ops->version); 466 seq_printf(m, ",vers=%u", clp->rpc_ops->version);
467 seq_printf(m, ",rsize=%d", nfss->rsize); 467 seq_printf(m, ",rsize=%u", nfss->rsize);
468 seq_printf(m, ",wsize=%d", nfss->wsize); 468 seq_printf(m, ",wsize=%u", nfss->wsize);
469 if (nfss->acregmin != 3*HZ || showdefaults) 469 if (nfss->acregmin != 3*HZ || showdefaults)
470 seq_printf(m, ",acregmin=%d", nfss->acregmin/HZ); 470 seq_printf(m, ",acregmin=%u", nfss->acregmin/HZ);
471 if (nfss->acregmax != 60*HZ || showdefaults) 471 if (nfss->acregmax != 60*HZ || showdefaults)
472 seq_printf(m, ",acregmax=%d", nfss->acregmax/HZ); 472 seq_printf(m, ",acregmax=%u", nfss->acregmax/HZ);
473 if (nfss->acdirmin != 30*HZ || showdefaults) 473 if (nfss->acdirmin != 30*HZ || showdefaults)
474 seq_printf(m, ",acdirmin=%d", nfss->acdirmin/HZ); 474 seq_printf(m, ",acdirmin=%u", nfss->acdirmin/HZ);
475 if (nfss->acdirmax != 60*HZ || showdefaults) 475 if (nfss->acdirmax != 60*HZ || showdefaults)
476 seq_printf(m, ",acdirmax=%d", nfss->acdirmax/HZ); 476 seq_printf(m, ",acdirmax=%u", nfss->acdirmax/HZ);
477 for (nfs_infop = nfs_info; nfs_infop->flag; nfs_infop++) { 477 for (nfs_infop = nfs_info; nfs_infop->flag; nfs_infop++) {
478 if (nfss->flags & nfs_infop->flag) 478 if (nfss->flags & nfs_infop->flag)
479 seq_puts(m, nfs_infop->str); 479 seq_puts(m, nfs_infop->str);
@@ -529,10 +529,10 @@ static int nfs_show_stats(struct seq_file *m, struct vfsmount *mnt)
529 529
530 seq_printf(m, "\n\tcaps:\t"); 530 seq_printf(m, "\n\tcaps:\t");
531 seq_printf(m, "caps=0x%x", nfss->caps); 531 seq_printf(m, "caps=0x%x", nfss->caps);
532 seq_printf(m, ",wtmult=%d", nfss->wtmult); 532 seq_printf(m, ",wtmult=%u", nfss->wtmult);
533 seq_printf(m, ",dtsize=%d", nfss->dtsize); 533 seq_printf(m, ",dtsize=%u", nfss->dtsize);
534 seq_printf(m, ",bsize=%d", nfss->bsize); 534 seq_printf(m, ",bsize=%u", nfss->bsize);
535 seq_printf(m, ",namelen=%d", nfss->namelen); 535 seq_printf(m, ",namlen=%u", nfss->namelen);
536 536
537#ifdef CONFIG_NFS_V4 537#ifdef CONFIG_NFS_V4
538 if (nfss->nfs_client->rpc_ops->version == 4) { 538 if (nfss->nfs_client->rpc_ops->version == 4) {
@@ -546,9 +546,9 @@ static int nfs_show_stats(struct seq_file *m, struct vfsmount *mnt)
546 /* 546 /*
547 * Display security flavor in effect for this mount 547 * Display security flavor in effect for this mount
548 */ 548 */
549 seq_printf(m, "\n\tsec:\tflavor=%d", auth->au_ops->au_flavor); 549 seq_printf(m, "\n\tsec:\tflavor=%u", auth->au_ops->au_flavor);
550 if (auth->au_flavor) 550 if (auth->au_flavor)
551 seq_printf(m, ",pseudoflavor=%d", auth->au_flavor); 551 seq_printf(m, ",pseudoflavor=%u", auth->au_flavor);
552 552
553 /* 553 /*
554 * Display superblock I/O counters 554 * Display superblock I/O counters