aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/nfsclient
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2022-06-18 20:43:02 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2022-06-18 20:43:02 +0000
commit6d25ea6d964165fd9a1859a645dedc35ce2606cc (patch)
tree0f35ade9e61080d364c48ed7d9314613f31208bb /sys/fs/nfsclient
parent8c309d48aabf1cb469334c7716033f177a2715c0 (diff)
downloadsrc-6d25ea6d964165fd9a1859a645dedc35ce2606cc.tar.gz
src-6d25ea6d964165fd9a1859a645dedc35ce2606cc.zip
nfscl: Clean up the code by removing #if(n)def APPLE
The definition of "APPLE" was used by the Mac OSX port. For FreeBSD, this definition is never used, so remove the references to it to clean up the code. This commit should not result in a semantics change.
Diffstat (limited to 'sys/fs/nfsclient')
-rw-r--r--sys/fs/nfsclient/nfs_clrpcops.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c
index 3e66bf93e4fc..bf4cbe88af95 100644
--- a/sys/fs/nfsclient/nfs_clrpcops.c
+++ b/sys/fs/nfsclient/nfs_clrpcops.c
@@ -425,9 +425,6 @@ else printf(" fhl=0\n");
NFS4NODENAME(np->n_v4),
np->n_v4->n4_namelen, &dp, cred, p);
if (dp != NULL) {
-#ifdef APPLE
- OSBitAndAtomic((int32_t)~NDELEGMOD, (UInt32 *)&np->n_flag);
-#else
NFSLOCKNODE(np);
np->n_flag &= ~NDELEGMOD;
/*
@@ -439,7 +436,6 @@ else printf(" fhl=0\n");
*/
NFSINVALATTRCACHE(np);
NFSUNLOCKNODE(np);
-#endif
(void) nfscl_deleg(nmp->nm_mountp,
op->nfso_own->nfsow_clp,
nfhp->nfh_fh, nfhp->nfh_len, cred, p, &dp);
@@ -3645,7 +3641,6 @@ nfsmout:
return (error);
}
-#ifndef APPLE
/*
* NFS V3 readdir plus RPC. Used in place of nfsrpc_readdir().
* (Also used for NFS V4 when mount flag set.)
@@ -4181,7 +4176,6 @@ nfsmout:
m_freem(nd->nd_mrep);
return (error);
}
-#endif /* !APPLE */
/*
* Nfs commit rpc