summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_sync.c
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2011-04-05 14:14:08 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2011-04-05 14:14:08 +0000
commit09931756bf164ec239559a8c39bd52706b27241e (patch)
tree21563af8dce4f09f9b4664b7ce6a5d8a9ef5e8fc /sys/kern/vfs_sync.c
parent7b465dd5593ff7b3f25c30ebff91f4a2c899fbb8 (diff)
Every single vop_default is set to eopnotsupp, so retire it
and return EOPNOTSUPP directly from the VOP_* functions. Filesystems should, at some point fill in every function in the vop_default struct so we can get rid of the 'if' statements in VOP_*.
Diffstat (limited to 'sys/kern/vfs_sync.c')
-rw-r--r--sys/kern/vfs_sync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c
index a326e9297e1..46c1e8aaa81 100644
--- a/sys/kern/vfs_sync.c
+++ b/sys/kern/vfs_sync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_sync.c,v 1.49 2010/12/21 20:14:43 thib Exp $ */
+/* $OpenBSD: vfs_sync.c,v 1.50 2011/04/05 14:14:07 thib Exp $ */
/*
* Portions of this code are:
@@ -260,7 +260,6 @@ int sync_inactive(void *);
int sync_print(void *);
struct vops sync_vops = {
- .vop_default = eopnotsupp,
.vop_close = nullop,
.vop_fsync = sync_fsync,
.vop_inactive = sync_inactive,