diff options
author | phk <phk@FreeBSD.org> | 2003-06-12 20:48:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-06-12 20:48:38 +0000 |
commit | fd139fd7d009dbf6f6353b2011b0ff0bf4b32d44 (patch) | |
tree | 18550103bc5d68f2255cbfa41b2ed5008e5dd743 /sys/fs/fdescfs/fdesc_vfsops.c | |
parent | c4e22440ca79ff6a8d00e3d6d31f6029efa1cb8e (diff) | |
download | FreeBSD-src-fd139fd7d009dbf6f6353b2011b0ff0bf4b32d44.zip FreeBSD-src-fd139fd7d009dbf6f6353b2011b0ff0bf4b32d44.tar.gz |
Initialize struct vfsops C99-sparsely.
Submitted by: hmp
Reviewed by: phk
Diffstat (limited to 'sys/fs/fdescfs/fdesc_vfsops.c')
-rw-r--r-- | sys/fs/fdescfs/fdesc_vfsops.c | 31 |
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); |