summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/fs/nfsclient/nfs_clsubs.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2021-07-29 15:49:52 +1000
committerChris Johns <chrisj@rtems.org>2021-08-31 18:38:48 +1000
commit882425fe547f73a1a77caa4938dec369cfd1063d (patch)
treeafcd61607284dcba2be4defbad655e16b138d429 /freebsd/sys/fs/nfsclient/nfs_clsubs.c
parentkern/sys: Import NFS and NFS file system client (diff)
downloadrtems-libbsd-882425fe547f73a1a77caa4938dec369cfd1063d.tar.bz2
kern/sys: Add NFSv4 client
Update #4475
Diffstat (limited to 'freebsd/sys/fs/nfsclient/nfs_clsubs.c')
-rw-r--r--freebsd/sys/fs/nfsclient/nfs_clsubs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/freebsd/sys/fs/nfsclient/nfs_clsubs.c b/freebsd/sys/fs/nfsclient/nfs_clsubs.c
index 1c69d935..af0f3c62 100644
--- a/freebsd/sys/fs/nfsclient/nfs_clsubs.c
+++ b/freebsd/sys/fs/nfsclient/nfs_clsubs.c
@@ -1,3 +1,5 @@
+#include <machine/rtems-bsd-kernel-space.h>
+
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -57,7 +59,9 @@ __FBSDID("$FreeBSD$");
#include <sys/stat.h>
#include <sys/malloc.h>
#include <sys/sysent.h>
+#ifndef __rtems__
#include <sys/syscall.h>
+#endif /* __rtems__ */
#include <sys/sysproto.h>
#include <sys/taskqueue.h>
@@ -256,8 +260,10 @@ ncl_getattrcache(struct vnode *vp, struct vattr *vaper)
vaper->va_mtime = np->n_mtim;
}
NFSUNLOCKNODE(np);
+#ifndef __rtems__
if (setnsize)
vnode_pager_setsize(vp, nsize);
+#endif /* __rtems__ */
KDTRACE_NFS_ATTRCACHE_GET_HIT(vp, vap);
return (0);
}
@@ -388,4 +394,3 @@ ncl_init(struct vfsconf *vfsp)
return (0);
}
-