From c55210afc563c7d266b94a9ca5e3c1e8259acd75 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 23 Jan 2001 22:37:30 +0000 Subject: - FreeBSD doesn't have an abortop vnop as far as I can tell, so #ifdef references to the hpf op out. - Remove a lockdestroy() on a non-existent variable. --- sys/fs/hpfs/hpfs_vnops.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/fs') diff --git a/sys/fs/hpfs/hpfs_vnops.c b/sys/fs/hpfs/hpfs_vnops.c index 71b5ad5..2a378c2 100644 --- a/sys/fs/hpfs/hpfs_vnops.c +++ b/sys/fs/hpfs/hpfs_vnops.c @@ -86,12 +86,13 @@ static int hpfs_readdir __P((struct vop_readdir_args *ap)); static int hpfs_lookup __P((struct vop_lookup_args *ap)); static int hpfs_create __P((struct vop_create_args *)); static int hpfs_remove __P((struct vop_remove_args *)); -static int hpfs_abortop __P((struct vop_abortop_args *)); static int hpfs_bmap __P((struct vop_bmap_args *ap)); #if defined(__FreeBSD__) static int hpfs_getpages __P((struct vop_getpages_args *ap)); static int hpfs_putpages __P((struct vop_putpages_args *)); static int hpfs_fsync __P((struct vop_fsync_args *ap)); +#else +static int hpfs_abortop __P((struct vop_abortop_args *)); #endif static int hpfs_pathconf __P((struct vop_pathconf_args *ap)); @@ -698,8 +699,6 @@ hpfs_reclaim(ap) hp->h_devvp = NULL; } - lockdestroy(&hp->hlock); - vp->v_data = NULL; FREE(hp, M_HPFSNO); @@ -1343,7 +1342,6 @@ struct vnodeopv_entry_desc hpfs_vnodeop_entries[] = { { &vop_print_desc, (vop_t *)hpfs_print }, { &vop_create_desc, (vop_t *)hpfs_create }, { &vop_remove_desc, (vop_t *)hpfs_remove }, - { &vop_abortop_desc, (vop_t *)hpfs_abortop }, { &vop_islocked_desc, (vop_t *)vop_stdislocked }, { &vop_unlock_desc, (vop_t *)vop_stdunlock }, { &vop_lock_desc, (vop_t *)vop_stdlock }, -- cgit v1.1