summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/nfs_util.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-12 17:36:48 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-12 17:36:48 +0000
commit44ec3b800f05782d2f9acea88fd3b1aeb2ef8132 (patch)
tree99f34f910bcd872ec8f6787457092cb28d777e3b /nuttx/fs/nfs/nfs_util.c
parent7f63dd840feea2cce7e55ad8bc4e1e98d23ede87 (diff)
downloadpx4-nuttx-44ec3b800f05782d2f9acea88fd3b1aeb2ef8132.tar.gz
px4-nuttx-44ec3b800f05782d2f9acea88fd3b1aeb2ef8132.tar.bz2
px4-nuttx-44ec3b800f05782d2f9acea88fd3b1aeb2ef8132.zip
NFS code shrinking
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4833 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/nfs_util.c')
-rw-r--r--nuttx/fs/nfs/nfs_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/fs/nfs/nfs_util.c b/nuttx/fs/nfs/nfs_util.c
index d489a839c..3206014c0 100644
--- a/nuttx/fs/nfs/nfs_util.c
+++ b/nuttx/fs/nfs/nfs_util.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * fs/nfs/nfs_util.h
+ * fs/nfs/nfs_util.c
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -221,12 +221,12 @@ int nfs_fsinfo(FAR struct nfsmount *nmp)
memset(&fsinfo, 0, sizeof(struct FS3args));
memset(&fsp, 0, sizeof(struct rpc_reply_fsinfo));
- nfsstats.rpccnt[NFSPROC_FSINFO]++;
fsinfo.fsroot.length = txdr_unsigned(nmp->nm_fhsize);
fsinfo.fsroot.handle = nmp->nm_fh;
/* Request FSINFO from the server */
+ nfs_statistics(NFSPROC_FSINFO);
error = nfs_request(nmp, NFSPROC_FSINFO,
(FAR const void *)&fsinfo, sizeof(struct FS3args),
(FAR void *)&fsp, sizeof(struct rpc_reply_fsinfo));
@@ -359,7 +359,7 @@ int nfs_lookup(struct nfsmount *nmp, FAR const char *filename,
/* Request LOOKUP from the server */
- nfsstats.rpccnt[NFSPROC_LOOKUP]++;
+ nfs_statistics(NFSPROC_LOOKUP);
error = nfs_request(nmp, NFSPROC_LOOKUP,
(FAR const void *)&request, reqlen,
(FAR void *)&response, sizeof(struct rpc_reply_lookup));