From adfad1eb3557abe342244fcbbbe8a8bba46ad842 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sat, 28 Dec 2002 05:39:25 +0000 Subject: [PATCH] Trim left-over and unused vop_refreshlabel() bits from devfs. Reported by: bde --- sys/fs/devfs/devfs_vnops.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 844d6bce1f9a..8d3a131b6e96 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -72,9 +72,6 @@ static int devfs_read(struct vop_read_args *ap); static int devfs_readdir(struct vop_readdir_args *ap); static int devfs_readlink(struct vop_readlink_args *ap); static int devfs_reclaim(struct vop_reclaim_args *ap); -#ifdef MAC -static int devfs_refreshlabel(struct vop_refreshlabel_args *ap); -#endif static int devfs_remove(struct vop_remove_args *ap); static int devfs_revoke(struct vop_revoke_args *ap); static int devfs_setattr(struct vop_setattr_args *ap); @@ -658,20 +655,6 @@ devfs_reclaim(ap) return (0); } -#ifdef MAC -static int -devfs_refreshlabel(ap) - struct vop_refreshlabel_args /* { - struct vnode *a_vp; - struct ucred *a_cred; - } */ *ap; -{ - - /* Labels are always in sync. */ - return (0); -} -#endif - static int devfs_remove(ap) struct vop_remove_args /* { @@ -893,9 +876,6 @@ static struct vnodeopv_entry_desc devfs_vnodeop_entries[] = { { &vop_readlink_desc, (vop_t *) devfs_readlink }, { &vop_reclaim_desc, (vop_t *) devfs_reclaim }, { &vop_remove_desc, (vop_t *) devfs_remove }, -#ifdef MAC - { &vop_refreshlabel_desc, (vop_t *) devfs_refreshlabel }, -#endif { &vop_revoke_desc, (vop_t *) devfs_revoke }, { &vop_setattr_desc, (vop_t *) devfs_setattr }, #ifdef MAC @@ -919,9 +899,6 @@ static struct vnodeopv_entry_desc devfs_specop_entries[] = { { &vop_pathconf_desc, (vop_t *) devfs_pathconf }, { &vop_print_desc, (vop_t *) vop_null }, { &vop_reclaim_desc, (vop_t *) devfs_reclaim }, -#ifdef MAC - { &vop_refreshlabel_desc, (vop_t *) devfs_refreshlabel }, -#endif { &vop_remove_desc, (vop_t *) devfs_remove }, { &vop_revoke_desc, (vop_t *) devfs_revoke }, { &vop_setattr_desc, (vop_t *) devfs_setattr },