summaryrefslogtreecommitdiffstats
path: root/sys/fs/fdescfs/fdesc_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/fdescfs/fdesc_vfsops.c')
-rw-r--r--sys/fs/fdescfs/fdesc_vfsops.c31
1 files changed, 9 insertions, 22 deletions
diff --git a/sys/fs/fdescfs/fdesc_vfsops.c b/sys/fs/fdescfs/fdesc_vfsops.c
index fbe73d9..ff9396d 100644
--- a/sys/fs/fdescfs/fdesc_vfsops.c
+++ b/sys/fs/fdescfs/fdesc_vfsops.c
@@ -58,13 +58,10 @@
static MALLOC_DEFINE(M_FDESCMNT, "FDESC mount", "FDESC mount structure");
-static int fdesc_mount(struct mount *mp, struct nameidata *ndp,
- struct thread *td);
-static int fdesc_unmount(struct mount *mp, int mntflags,
- struct thread *td);
-static int fdesc_statfs(struct mount *mp, struct statfs *sbp,
- struct thread *td);
-
+static vfs_nmount_t fdesc_mount;
+static vfs_unmount_t fdesc_unmount;
+static vfs_statfs_t fdesc_statfs;
+
/*
* Mount the per-process file descriptors (/dev/fd)
*/
@@ -207,21 +204,11 @@ fdesc_statfs(mp, sbp, td)
}
static struct vfsops fdesc_vfsops = {
- NULL,
- vfs_stdstart,
- fdesc_unmount,
- fdesc_root,
- vfs_stdquotactl,
- fdesc_statfs,
- vfs_stdnosync,
- vfs_stdvget,
- vfs_stdfhtovp,
- vfs_stdcheckexp,
- vfs_stdvptofh,
- fdesc_init,
- vfs_stduninit,
- vfs_stdextattrctl,
- fdesc_mount,
+ .vfs_init = fdesc_init,
+ .vfs_nmount = fdesc_mount,
+ .vfs_root = fdesc_root,
+ .vfs_statfs = fdesc_statfs,
+ .vfs_unmount = fdesc_unmount,
};
VFS_SET(fdesc_vfsops, fdescfs, VFCF_SYNTHETIC);
OpenPOWER on IntegriCloud