summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2008-10-16 07:57:07 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2008-10-16 07:57:07 +0000
commit8c0013d17d81bf89247a0df1537b89b11703eb3e (patch)
treecfd05a1781eee22333aa8d3a913c53d7cd8257d8
parenta6839439c3c393efca52a51f924b0c6eeee5b63d (diff)
Don't hide the fact that NFS uses vop_generic_* functions behind
#define's in nfs_var.h ok thib@
-rw-r--r--sys/nfs/nfs_var.h6
-rw-r--r--sys/nfs/nfs_vnops.c22
2 files changed, 12 insertions, 16 deletions
diff --git a/sys/nfs/nfs_var.h b/sys/nfs/nfs_var.h
index 5698cb54b2d..64c97376086 100644
--- a/sys/nfs/nfs_var.h
+++ b/sys/nfs/nfs_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_var.h,v 1.43 2008/08/09 10:14:02 thib Exp $ */
+/* $OpenBSD: nfs_var.h,v 1.44 2008/10/16 07:57:06 blambert Exp $ */
/* $NetBSD: nfs_var.h,v 1.3 1996/02/18 11:53:54 fvdl Exp $ */
/*
@@ -126,10 +126,6 @@ int nfsfifo_close(void *);
int nfsfifo_reclaim(void *);
#define nfs_ioctl ((int (*)(void *))enoioctl)
-#define nfs_revoke vop_generic_revoke
-#define nfs_lock vop_generic_lock
-#define nfs_unlock vop_generic_unlock
-#define nfs_islocked vop_generic_islocked
/* nfs_serv.c */
int nfsrv3_access(struct nfsrv_descript *, struct nfssvc_sock *,
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index c3def3d6dbb..2411f6c0858 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vnops.c,v 1.103 2008/09/12 16:17:57 thib Exp $ */
+/* $OpenBSD: nfs_vnops.c,v 1.104 2008/10/16 07:57:06 blambert Exp $ */
/* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */
/*
@@ -104,7 +104,7 @@ struct vnodeopv_entry_desc nfsv2_vnodeop_entries[] = {
{ &vop_ioctl_desc, nfs_ioctl }, /* ioctl */
{ &vop_poll_desc, nfs_poll }, /* poll */
{ &vop_kqfilter_desc, nfs_kqfilter }, /* kqfilter */
- { &vop_revoke_desc, nfs_revoke }, /* revoke */
+ { &vop_revoke_desc, vop_generic_revoke }, /* revoke */
{ &vop_fsync_desc, nfs_fsync }, /* fsync */
{ &vop_remove_desc, nfs_remove }, /* remove */
{ &vop_link_desc, nfs_link }, /* link */
@@ -117,12 +117,12 @@ struct vnodeopv_entry_desc nfsv2_vnodeop_entries[] = {
{ &vop_abortop_desc, vop_generic_abortop }, /* abortop */
{ &vop_inactive_desc, nfs_inactive }, /* inactive */
{ &vop_reclaim_desc, nfs_reclaim }, /* reclaim */
- { &vop_lock_desc, nfs_lock }, /* lock */
- { &vop_unlock_desc, nfs_unlock }, /* unlock */
+ { &vop_lock_desc, vop_generic_lock }, /* lock */
+ { &vop_unlock_desc, vop_generic_unlock }, /* unlock */
{ &vop_bmap_desc, nfs_bmap }, /* bmap */
{ &vop_strategy_desc, nfs_strategy }, /* strategy */
{ &vop_print_desc, nfs_print }, /* print */
- { &vop_islocked_desc, nfs_islocked }, /* islocked */
+ { &vop_islocked_desc, vop_generic_islocked }, /* islocked */
{ &vop_pathconf_desc, nfs_pathconf }, /* pathconf */
{ &vop_advlock_desc, nfs_advlock }, /* advlock */
{ &vop_bwrite_desc, nfs_bwrite },
@@ -146,10 +146,10 @@ struct vnodeopv_entry_desc spec_nfsv2nodeop_entries[] = {
{ &vop_fsync_desc, nfs_fsync }, /* fsync */
{ &vop_inactive_desc, nfs_inactive }, /* inactive */
{ &vop_reclaim_desc, nfs_reclaim }, /* reclaim */
- { &vop_lock_desc, nfs_lock }, /* lock */
- { &vop_unlock_desc, nfs_unlock }, /* unlock */
+ { &vop_lock_desc, vop_generic_lock }, /* lock */
+ { &vop_unlock_desc, vop_generic_unlock }, /* unlock */
{ &vop_print_desc, nfs_print }, /* print */
- { &vop_islocked_desc, nfs_islocked }, /* islocked */
+ { &vop_islocked_desc, vop_generic_islocked }, /* islocked */
{ NULL, NULL }
};
struct vnodeopv_desc spec_nfsv2nodeop_opv_desc =
@@ -168,10 +168,10 @@ struct vnodeopv_entry_desc fifo_nfsv2nodeop_entries[] = {
{ &vop_fsync_desc, nfs_fsync }, /* fsync */
{ &vop_inactive_desc, nfs_inactive }, /* inactive */
{ &vop_reclaim_desc, nfsfifo_reclaim }, /* reclaim */
- { &vop_lock_desc, nfs_lock }, /* lock */
- { &vop_unlock_desc, nfs_unlock }, /* unlock */
+ { &vop_lock_desc, vop_generic_lock }, /* lock */
+ { &vop_unlock_desc, vop_generic_unlock }, /* unlock */
{ &vop_print_desc, nfs_print }, /* print */
- { &vop_islocked_desc, nfs_islocked }, /* islocked */
+ { &vop_islocked_desc, vop_generic_islocked }, /* islocked */
{ &vop_bwrite_desc, vop_generic_bwrite },
{ NULL, NULL }
};