summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2015-01-07 17:22:56 +0000
committerrwatson <rwatson@FreeBSD.org>2015-01-07 17:22:56 +0000
commit608a6cd69c874cda372cec94a1f06246ea2ff2a1 (patch)
treeaa0f6cf11d71b9460beb1e13f043593e29175671 /sys/nfsserver
parente5abbbff85be28cc2471764d6781375f86b3c68c (diff)
downloadFreeBSD-src-608a6cd69c874cda372cec94a1f06246ea2ff2a1.zip
FreeBSD-src-608a6cd69c874cda372cec94a1f06246ea2ff2a1.tar.gz
Use M_SIZE() instead of hand-crafted (and mostly correct) NFSMSIZ() macro
in the NFS server; garbage collect now-unused NFSMSIZ() and M_HASCL() macros. Also garbage collect now-unused versions in headers for the removed previous NFS client and server. Reviewed by: rmacklem Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfsm_subs.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/nfsserver/nfsm_subs.h b/sys/nfsserver/nfsm_subs.h
index fc9b76d..5bf4ca9 100644
--- a/sys/nfsserver/nfsm_subs.h
+++ b/sys/nfsserver/nfsm_subs.h
@@ -47,14 +47,6 @@
*/
/*
- * First define what the actual subs. return
- */
-
-#define M_HASCL(m) ((m)->m_flags & M_EXT)
-#define NFSMSIZ(m) ((M_HASCL(m))?MCLBYTES: \
- (((m)->m_flags & M_PKTHDR)?MHLEN:MLEN))
-
-/*
* Now for the macros that do the simple stuff and call the functions
* for the hard stuff.
* These macros use several vars. declared in nfsm_reqhead and these
OpenPOWER on IntegriCloud