aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index f760831..60afa31 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -247,3 +247,12 @@ int vfs_open(struct vnode *vp)
return vp->vops->open(vp);
}
+
+int
+vfs_close(struct vnode *vp)
+{
+ if (vp->vops->close == NULL)
+ return -EIO;
+
+ return vp->vops->close(vp);
+}