Use system wide no-op vfs_start function.
This commit is contained in:
parent
c5b83a1b43
commit
964ebefd8d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138075
@ -60,7 +60,6 @@ static vfs_checkexp_t nullfs_checkexp;
|
||||
static vfs_mount_t nullfs_mount;
|
||||
static vfs_quotactl_t nullfs_quotactl;
|
||||
static vfs_root_t nullfs_root;
|
||||
static vfs_start_t nullfs_start;
|
||||
static vfs_sync_t nullfs_sync;
|
||||
static vfs_statfs_t nullfs_statfs;
|
||||
static vfs_unmount_t nullfs_unmount;
|
||||
@ -194,21 +193,6 @@ nullfs_mount(struct mount *mp, struct thread *td)
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* VFS start. Nothing needed here - the start routine
|
||||
* on the underlying filesystem will have been called
|
||||
* when that filesystem was mounted.
|
||||
*/
|
||||
static int
|
||||
nullfs_start(mp, flags, td)
|
||||
struct mount *mp;
|
||||
int flags;
|
||||
struct thread *td;
|
||||
{
|
||||
return (0);
|
||||
/* return VFS_START(MOUNTTONULLMOUNT(mp)->nullm_vfs, flags, td); */
|
||||
}
|
||||
|
||||
/*
|
||||
* Free reference to null layer
|
||||
*/
|
||||
@ -406,7 +390,6 @@ static struct vfsops null_vfsops = {
|
||||
.vfs_mount = nullfs_mount,
|
||||
.vfs_quotactl = nullfs_quotactl,
|
||||
.vfs_root = nullfs_root,
|
||||
.vfs_start = nullfs_start,
|
||||
.vfs_statfs = nullfs_statfs,
|
||||
.vfs_sync = nullfs_sync,
|
||||
.vfs_uninit = nullfs_uninit,
|
||||
|
@ -73,7 +73,6 @@ MODULE_DEPEND(nwfs, libmchain, 1, 1, 1);
|
||||
static vfs_omount_t nwfs_omount;
|
||||
static vfs_quotactl_t nwfs_quotactl;
|
||||
static vfs_root_t nwfs_root;
|
||||
static vfs_start_t nwfs_start;
|
||||
static vfs_statfs_t nwfs_statfs;
|
||||
static vfs_unmount_t nwfs_unmount;
|
||||
static vfs_init_t nwfs_init;
|
||||
@ -84,7 +83,6 @@ static struct vfsops nwfs_vfsops = {
|
||||
.vfs_omount = nwfs_omount,
|
||||
.vfs_quotactl = nwfs_quotactl,
|
||||
.vfs_root = nwfs_root,
|
||||
.vfs_start = nwfs_start,
|
||||
.vfs_statfs = nwfs_statfs,
|
||||
.vfs_sync = vfs_stdsync,
|
||||
.vfs_uninit = nwfs_uninit,
|
||||
@ -350,20 +348,6 @@ nwfs_root(struct mount *mp, struct vnode **vpp, struct thread *td) {
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Vfs start routine, a no-op.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
nwfs_start(mp, flags, td)
|
||||
struct mount *mp;
|
||||
int flags;
|
||||
struct thread *td;
|
||||
{
|
||||
NCPVODEBUG("flags=%04x\n",flags);
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Do operations associated with quotas, not supported
|
||||
*/
|
||||
|
@ -79,7 +79,6 @@ static MALLOC_DEFINE(M_SMBFSHASH, "SMBFS hash", "SMBFS hash table");
|
||||
static vfs_init_t smbfs_init;
|
||||
static vfs_uninit_t smbfs_uninit;
|
||||
static vfs_omount_t smbfs_omount;
|
||||
static vfs_start_t smbfs_start;
|
||||
static vfs_root_t smbfs_root;
|
||||
static vfs_quotactl_t smbfs_quotactl;
|
||||
static vfs_statfs_t smbfs_statfs;
|
||||
@ -90,7 +89,6 @@ static struct vfsops smbfs_vfsops = {
|
||||
.vfs_omount = smbfs_omount,
|
||||
.vfs_quotactl = smbfs_quotactl,
|
||||
.vfs_root = smbfs_root,
|
||||
.vfs_start = smbfs_start,
|
||||
.vfs_statfs = smbfs_statfs,
|
||||
.vfs_sync = vfs_stdsync,
|
||||
.vfs_uninit = smbfs_uninit,
|
||||
@ -293,20 +291,6 @@ smbfs_root(struct mount *mp, struct vnode **vpp, struct thread *td)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Vfs start routine, a no-op.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
smbfs_start(mp, flags, td)
|
||||
struct mount *mp;
|
||||
int flags;
|
||||
struct thread *td;
|
||||
{
|
||||
SMBVDEBUG("flags=%04x\n", flags);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Do operations associated with quotas, not supported
|
||||
*/
|
||||
|
@ -54,7 +54,6 @@
|
||||
static MALLOC_DEFINE(M_UMAPFSMNT, "UMAP mount", "UMAP mount structure");
|
||||
|
||||
static vfs_omount_t umapfs_omount;
|
||||
static vfs_start_t umapfs_start;
|
||||
static vfs_root_t umapfs_root;
|
||||
static vfs_quotactl_t umapfs_quotactl;
|
||||
static vfs_statfs_t umapfs_statfs;
|
||||
@ -233,22 +232,6 @@ umapfs_omount(mp, path, data, ndp, td)
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* VFS start. Nothing needed here - the start routine
|
||||
* on the underlying filesystem will have been called
|
||||
* when that filesystem was mounted.
|
||||
*/
|
||||
static int
|
||||
umapfs_start(mp, flags, td)
|
||||
struct mount *mp;
|
||||
int flags;
|
||||
struct thread *td;
|
||||
{
|
||||
|
||||
return (0);
|
||||
/* return (VFS_START(MOUNTTOUMAPMOUNT(mp)->umapm_vfs, flags, td)); */
|
||||
}
|
||||
|
||||
/*
|
||||
* Free reference to umap layer
|
||||
*/
|
||||
@ -433,7 +416,6 @@ static struct vfsops umap_vfsops = {
|
||||
.vfs_omount = umapfs_omount,
|
||||
.vfs_quotactl = umapfs_quotactl,
|
||||
.vfs_root = umapfs_root,
|
||||
.vfs_start = umapfs_start,
|
||||
.vfs_statfs = umapfs_statfs,
|
||||
.vfs_unmount = umapfs_unmount,
|
||||
.vfs_vget = umapfs_vget,
|
||||
|
@ -90,7 +90,6 @@ static struct vfsops ufs_vfsops = {
|
||||
.vfs_omount = ffs_omount,
|
||||
.vfs_quotactl = ufs_quotactl,
|
||||
.vfs_root = ufs_root,
|
||||
.vfs_start = ufs_start,
|
||||
.vfs_statfs = ffs_statfs,
|
||||
.vfs_sync = ffs_sync,
|
||||
.vfs_uninit = ffs_uninit,
|
||||
|
@ -86,7 +86,6 @@ int ufs_readdir(struct vop_readdir_args *);
|
||||
int ufs_reclaim(struct vop_reclaim_args *);
|
||||
void ffs_snapgone(struct inode *);
|
||||
vfs_root_t ufs_root;
|
||||
vfs_start_t ufs_start;
|
||||
int ufs_uninit(struct vfsconf *);
|
||||
int ufs_vinit(struct mount *, vop_t **, struct vnode **);
|
||||
|
||||
|
@ -61,20 +61,6 @@ __FBSDID("$FreeBSD$");
|
||||
#endif
|
||||
|
||||
MALLOC_DEFINE(M_UFSMNT, "UFS mount", "UFS mount structure");
|
||||
/*
|
||||
* Make a filesystem operational.
|
||||
* Nothing to do at the moment.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
int
|
||||
ufs_start(mp, flags, td)
|
||||
struct mount *mp;
|
||||
int flags;
|
||||
struct thread *td;
|
||||
{
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the root of a filesystem.
|
||||
|
Loading…
Reference in New Issue
Block a user