From ecbcedb99fc0830dec43bb89deb7546b47d4212c Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 13 Nov 2004 22:56:26 +0000 Subject: [PATCH] VOP_REVOKE() is only ever for VCHR vnodes, so unionfs does not need a vop_revoke() method. --- sys/fs/unionfs/union_vnops.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c index c092db9e5ee..ce51f689079 100644 --- a/sys/fs/unionfs/union_vnops.c +++ b/sys/fs/unionfs/union_vnops.c @@ -104,7 +104,6 @@ static int union_getwritemount(struct vop_getwritemount_args *ap); static int union_reclaim(struct vop_reclaim_args *ap); static int union_remove(struct vop_remove_args *ap); static int union_rename(struct vop_rename_args *ap); -static int union_revoke(struct vop_revoke_args *ap); static int union_rmdir(struct vop_rmdir_args *ap); static int union_poll(struct vop_poll_args *ap); static int union_setacl(struct vop_setacl_args *ap); @@ -1155,24 +1154,6 @@ union_poll(ap) return (VCALL(ovp, VOFFSET(vop_poll), ap)); } -static int -union_revoke(ap) - struct vop_revoke_args /* { - struct vnode *a_vp; - int a_flags; - struct thread *a_td; - } */ *ap; -{ - struct vnode *vp = ap->a_vp; - - if (UPPERVP(vp)) - VOP_REVOKE(UPPERVP(vp), ap->a_flags); - if (LOWERVP(vp)) - VOP_REVOKE(LOWERVP(vp), ap->a_flags); - vgone(vp); - return (0); -} - static int union_fsync(ap) struct vop_fsync_args /* { @@ -2109,7 +2090,6 @@ static struct vnodeopv_entry_desc union_vnodeop_entries[] = { { &vop_reclaim_desc, (vop_t *) union_reclaim }, { &vop_remove_desc, (vop_t *) union_remove }, { &vop_rename_desc, (vop_t *) union_rename }, - { &vop_revoke_desc, (vop_t *) union_revoke }, { &vop_rmdir_desc, (vop_t *) union_rmdir }, { &vop_setacl_desc, (vop_t *) union_setacl }, { &vop_setattr_desc, (vop_t *) union_setattr },