From d1e0950f7e70c0eb7a93ac58503f1e89ff6a51f5 Mon Sep 17 00:00:00 2001 From: bp Date: Sat, 18 Nov 2000 02:47:12 +0000 Subject: Use vop_defaultop() instead of ntfs_bypass(). PR: kern/22756 --- sys/fs/ntfs/ntfs_vnops.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/fs/ntfs') diff --git a/sys/fs/ntfs/ntfs_vnops.c b/sys/fs/ntfs/ntfs_vnops.c index e100730..710c0d1 100644 --- a/sys/fs/ntfs/ntfs_vnops.c +++ b/sys/fs/ntfs/ntfs_vnops.c @@ -79,7 +79,6 @@ #include /* for pathconf(2) constants */ -static int ntfs_bypass __P((struct vop_generic_args *ap)); static int ntfs_read __P((struct vop_read_args *)); static int ntfs_write __P((struct vop_write_args *ap)); static int ntfs_getattr __P((struct vop_getattr_args *ap)); @@ -97,6 +96,8 @@ static int ntfs_bmap __P((struct vop_bmap_args *ap)); static int ntfs_getpages __P((struct vop_getpages_args *ap)); static int ntfs_putpages __P((struct vop_putpages_args *)); static int ntfs_fsync __P((struct vop_fsync_args *ap)); +#else +static int ntfs_bypass __P((struct vop_generic_args *ap)); #endif static int ntfs_pathconf __P((void *)); @@ -190,6 +191,8 @@ ntfs_read(ap) return (0); } +#if !defined(__FreeBSD__) + static int ntfs_bypass(ap) struct vop_generic_args /* { @@ -202,6 +205,7 @@ ntfs_bypass(ap) return (error); } +#endif static int ntfs_getattr(ap) @@ -847,7 +851,7 @@ vop_t **ntfs_vnodeop_p; #if defined(__FreeBSD__) static struct vnodeopv_entry_desc ntfs_vnodeop_entries[] = { - { &vop_default_desc, (vop_t *)ntfs_bypass }, + { &vop_default_desc, (vop_t *)vop_defaultop }, { &vop_getattr_desc, (vop_t *)ntfs_getattr }, { &vop_inactive_desc, (vop_t *)ntfs_inactive }, -- cgit v1.1