diff options
author | jhb <jhb@FreeBSD.org> | 2009-01-21 14:42:00 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-01-21 14:42:00 +0000 |
commit | 47455a7b41fddec8ed401d12470434bd77477189 (patch) | |
tree | e58a2689a5a9b34097c0a3907a9c3f83d2c56940 /sys/kern/vnode_if.src | |
parent | fd1ff02af8d6981027dd9a4fa0fe479822e179a4 (diff) | |
download | FreeBSD-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/kern/vnode_if.src')
-rw-r--r-- | sys/kern/vnode_if.src | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/vnode_if.src b/sys/kern/vnode_if.src index 36ea434..ad4d1f7 100644 --- a/sys/kern/vnode_if.src +++ b/sys/kern/vnode_if.src @@ -171,6 +171,11 @@ vop_setattr { IN struct ucred *cred; }; +%% markatime vp L L L + +vop_markatime { + IN struct vnode *vp; +}; %% read vp L L L |