summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-01-21 14:42:00 +0000
committerjhb <jhb@FreeBSD.org>2009-01-21 14:42:00 +0000
commit47455a7b41fddec8ed401d12470434bd77477189 (patch)
treee58a2689a5a9b34097c0a3907a9c3f83d2c56940 /sys/nfsclient
parentfd1ff02af8d6981027dd9a4fa0fe479822e179a4 (diff)
downloadFreeBSD-src-47455a7b41fddec8ed401d12470434bd77477189.zip
FreeBSD-src-47455a7b41fddec8ed401d12470434bd77477189.tar.gz
Move the VA_MARKATIME flag for VOP_SETATTR() out into its own VOP:
VOP_MARKATIME() since unlike the rest of VOP_SETATTR(), VA_MARKATIME can be performed while holding a shared vnode lock (the same functionality is done internally by VOP_READ which can run with a shared vnode lock). Add missing locking of the vnode interlock to the ufs implementation and remove a special note and test from the NFS client about not supporting the feature. Inspired by: ups Tested by: pho
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c
index 7399470..7f8ab18 100644
--- a/sys/nfsclient/nfs_vnops.c
+++ b/sys/nfsclient/nfs_vnops.c
@@ -707,9 +707,9 @@ nfs_setattr(struct vop_setattr_args *ap)
#endif
/*
- * Setting of flags and marking of atimes are not supported.
+ * Setting of flags is not supported.
*/
- if (vap->va_flags != VNOVAL || (vap->va_vaflags & VA_MARK_ATIME))
+ if (vap->va_flags != VNOVAL)
return (EOPNOTSUPP);
/*
OpenPOWER on IntegriCloud