summaryrefslogtreecommitdiffstats
path: root/sys/fs/portalfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-06-12 20:48:38 +0000
committerphk <phk@FreeBSD.org>2003-06-12 20:48:38 +0000
commitfd139fd7d009dbf6f6353b2011b0ff0bf4b32d44 (patch)
tree18550103bc5d68f2255cbfa41b2ed5008e5dd743 /sys/fs/portalfs
parentc4e22440ca79ff6a8d00e3d6d31f6029efa1cb8e (diff)
downloadFreeBSD-src-fd139fd7d009dbf6f6353b2011b0ff0bf4b32d44.zip
FreeBSD-src-fd139fd7d009dbf6f6353b2011b0ff0bf4b32d44.tar.gz
Initialize struct vfsops C99-sparsely.
Submitted by: hmp Reviewed by: phk
Diffstat (limited to 'sys/fs/portalfs')
-rw-r--r--sys/fs/portalfs/portal_vfsops.c29
1 files changed, 8 insertions, 21 deletions
diff --git a/sys/fs/portalfs/portal_vfsops.c b/sys/fs/portalfs/portal_vfsops.c
index f731dc0..20f684f 100644
--- a/sys/fs/portalfs/portal_vfsops.c
+++ b/sys/fs/portalfs/portal_vfsops.c
@@ -62,13 +62,10 @@
static MALLOC_DEFINE(M_PORTALFSMNT, "PORTAL mount", "PORTAL mount structure");
-static int portal_mount(struct mount *mp, char *path, caddr_t data,
- struct nameidata *ndp, struct thread *td);
-static int portal_unmount(struct mount *mp, int mntflags,
- struct thread *td);
-static int portal_root(struct mount *mp, struct vnode **vpp);
-static int portal_statfs(struct mount *mp, struct statfs *sbp,
- struct thread *td);
+static vfs_mount_t portal_mount;
+static vfs_unmount_t portal_unmount;
+static vfs_root_t portal_root;
+static vfs_statfs_t portal_statfs;
/*
* Mount the per-process file descriptors (/dev/fd)
@@ -243,20 +240,10 @@ portal_statfs(mp, sbp, td)
}
static struct vfsops portal_vfsops = {
- portal_mount,
- vfs_stdstart,
- portal_unmount,
- portal_root,
- vfs_stdquotactl,
- portal_statfs,
- vfs_stdnosync,
- vfs_stdvget,
- vfs_stdfhtovp,
- vfs_stdcheckexp,
- vfs_stdvptofh,
- vfs_stdinit,
- vfs_stduninit,
- vfs_stdextattrctl,
+ .vfs_mount = portal_mount,
+ .vfs_root = portal_root,
+ .vfs_statfs = portal_statfs,
+ .vfs_unmount = portal_unmount,
};
VFS_SET(portal_vfsops, portalfs, VFCF_SYNTHETIC);
OpenPOWER on IntegriCloud