Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/vnode_if.src
Show First 20 Lines • Show All 786 Lines • ▼ Show 20 Lines | vop_copy_file_range { | ||||
INOUT size_t *lenp; | INOUT size_t *lenp; | ||||
IN unsigned int flags; | IN unsigned int flags; | ||||
IN struct ucred *incred; | IN struct ucred *incred; | ||||
IN struct ucred *outcred; | IN struct ucred *outcred; | ||||
IN struct thread *fsizetd; | IN struct thread *fsizetd; | ||||
}; | }; | ||||
%% deallocate vp L L L | |||||
kib: Where do you plan to use shared vnode lock? Isn't exclusive lock de-facto required? | |||||
Done Inline ActionsThis is for MNT_SHARED_WRITES(mp) == true, which is the case in ZFS. khng: This is for `MNT_SHARED_WRITES(mp) == true`, which is the case in ZFS. | |||||
vop_deallocate { | |||||
IN struct vnode *vp; | |||||
INOUT off_t *offset; | |||||
INOUT off_t *len; | |||||
IN int flags; | |||||
IN struct ucred *cred; | |||||
}; | |||||
# The VOPs below are spares at the end of the table to allow new VOPs to be | # The VOPs below are spares at the end of the table to allow new VOPs to be | ||||
# added in stable branches without breaking the KBI. New VOPs in HEAD should | # added in stable branches without breaking the KBI. New VOPs in HEAD should | ||||
# be added above these spares. When merging a new VOP to a stable branch, | # be added above these spares. When merging a new VOP to a stable branch, | ||||
# the new VOP should replace one of the spares. | # the new VOP should replace one of the spares. | ||||
vop_spare1 { | vop_spare1 { | ||||
IN struct vnode *vp; | IN struct vnode *vp; | ||||
}; | }; | ||||
Show All 16 Lines |
Where do you plan to use shared vnode lock? Isn't exclusive lock de-facto required?