mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Give vop_mmap an untimely death. The opportunity to give it a timely
death timed out in 1996.
This commit is contained in:
parent
03eb1a83f8
commit
e3c4036b18
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68186
@ -119,7 +119,6 @@ struct vnodeopv_entry_desc coda_vnodeop_entries[] = {
|
||||
{ &vop_read_desc, coda_read }, /* read */
|
||||
{ &vop_write_desc, coda_write }, /* write */
|
||||
{ &vop_ioctl_desc, coda_ioctl }, /* ioctl */
|
||||
{ &vop_mmap_desc, coda_vop_error }, /* mmap */
|
||||
{ &vop_fsync_desc, coda_fsync }, /* fsync */
|
||||
{ &vop_remove_desc, coda_remove }, /* remove */
|
||||
{ &vop_link_desc, coda_link }, /* link */
|
||||
|
@ -119,7 +119,6 @@ struct vnodeopv_entry_desc coda_vnodeop_entries[] = {
|
||||
{ &vop_read_desc, coda_read }, /* read */
|
||||
{ &vop_write_desc, coda_write }, /* write */
|
||||
{ &vop_ioctl_desc, coda_ioctl }, /* ioctl */
|
||||
{ &vop_mmap_desc, coda_vop_error }, /* mmap */
|
||||
{ &vop_fsync_desc, coda_fsync }, /* fsync */
|
||||
{ &vop_remove_desc, coda_remove }, /* remove */
|
||||
{ &vop_link_desc, coda_link }, /* link */
|
||||
|
@ -73,7 +73,6 @@ static struct vnodeopv_entry_desc dead_vnodeop_entries[] = {
|
||||
{ &vop_lookup_desc, (vop_t *) dead_lookup },
|
||||
{ &vop_mkdir_desc, (vop_t *) dead_badop },
|
||||
{ &vop_mknod_desc, (vop_t *) dead_badop },
|
||||
{ &vop_mmap_desc, (vop_t *) dead_badop },
|
||||
{ &vop_open_desc, (vop_t *) dead_open },
|
||||
{ &vop_pathconf_desc, (vop_t *) vop_ebadf }, /* per pathconf(2) */
|
||||
{ &vop_poll_desc, (vop_t *) dead_poll },
|
||||
|
@ -1389,7 +1389,6 @@ struct vnodeopv_entry_desc ntfs_vnodeop_entries[] = {
|
||||
{ &vop_ioctl_desc, genfs_enoioctl }, /* ioctl */
|
||||
{ &vop_poll_desc, genfs_poll }, /* poll */
|
||||
{ &vop_revoke_desc, genfs_revoke }, /* revoke */
|
||||
{ &vop_mmap_desc, genfs_eopnotsupp }, /* mmap */
|
||||
{ &vop_fsync_desc, genfs_fsync }, /* fsync */
|
||||
{ &vop_seek_desc, genfs_seek }, /* seek */
|
||||
{ &vop_remove_desc, genfs_eopnotsupp }, /* remove */
|
||||
|
@ -903,7 +903,6 @@ struct vnodeopv_entry_desc ntfs_vnodeop_entries[] = {
|
||||
{ &vop_ioctl_desc, genfs_enoioctl }, /* ioctl */
|
||||
{ &vop_poll_desc, genfs_poll }, /* poll */
|
||||
{ &vop_revoke_desc, genfs_revoke }, /* revoke */
|
||||
{ &vop_mmap_desc, genfs_eopnotsupp }, /* mmap */
|
||||
{ &vop_fsync_desc, genfs_fsync }, /* fsync */
|
||||
{ &vop_seek_desc, genfs_seek }, /* seek */
|
||||
{ &vop_remove_desc, genfs_eopnotsupp }, /* remove */
|
||||
|
@ -85,7 +85,6 @@ static int union_lookup1 __P((struct vnode *udvp, struct vnode **dvp,
|
||||
struct componentname *cnp));
|
||||
static int union_mkdir __P((struct vop_mkdir_args *ap));
|
||||
static int union_mknod __P((struct vop_mknod_args *ap));
|
||||
static int union_mmap __P((struct vop_mmap_args *ap));
|
||||
static int union_open __P((struct vop_open_args *ap));
|
||||
static int union_pathconf __P((struct vop_pathconf_args *ap));
|
||||
static int union_print __P((struct vop_print_args *ap));
|
||||
@ -1207,21 +1206,6 @@ union_revoke(ap)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
union_mmap(ap)
|
||||
struct vop_mmap_args /* {
|
||||
struct vnode *a_vp;
|
||||
int a_fflags;
|
||||
struct ucred *a_cred;
|
||||
struct proc *a_p;
|
||||
} */ *ap;
|
||||
{
|
||||
struct vnode *ovp = OTHERVP(ap->a_vp);
|
||||
|
||||
ap->a_vp = ovp;
|
||||
return (VCALL(ovp, VOFFSET(vop_mmap), ap));
|
||||
}
|
||||
|
||||
static int
|
||||
union_fsync(ap)
|
||||
struct vop_fsync_args /* {
|
||||
@ -1969,7 +1953,6 @@ static struct vnodeopv_entry_desc union_vnodeop_entries[] = {
|
||||
{ &vop_lookup_desc, (vop_t *) union_lookup },
|
||||
{ &vop_mkdir_desc, (vop_t *) union_mkdir },
|
||||
{ &vop_mknod_desc, (vop_t *) union_mknod },
|
||||
{ &vop_mmap_desc, (vop_t *) union_mmap },
|
||||
{ &vop_open_desc, (vop_t *) union_open },
|
||||
{ &vop_pathconf_desc, (vop_t *) union_pathconf },
|
||||
{ &vop_poll_desc, (vop_t *) union_poll },
|
||||
|
@ -90,7 +90,6 @@ static struct vnodeopv_entry_desc default_vnodeop_entries[] = {
|
||||
{ &vop_islocked_desc, (vop_t *) vop_noislocked },
|
||||
{ &vop_lease_desc, (vop_t *) vop_null },
|
||||
{ &vop_lock_desc, (vop_t *) vop_nolock },
|
||||
{ &vop_mmap_desc, (vop_t *) vop_einval },
|
||||
{ &vop_open_desc, (vop_t *) vop_null },
|
||||
{ &vop_pathconf_desc, (vop_t *) vop_einval },
|
||||
{ &vop_poll_desc, (vop_t *) vop_nopoll },
|
||||
|
@ -229,16 +229,6 @@ vop_revoke {
|
||||
IN int flags;
|
||||
};
|
||||
|
||||
#
|
||||
# XXX - not used
|
||||
#
|
||||
vop_mmap {
|
||||
IN struct vnode *vp;
|
||||
IN int fflags;
|
||||
IN struct ucred *cred;
|
||||
IN struct proc *p;
|
||||
};
|
||||
|
||||
#
|
||||
#% fsync vp L L L
|
||||
#
|
||||
|
@ -73,7 +73,6 @@ static struct vnodeopv_entry_desc dead_vnodeop_entries[] = {
|
||||
{ &vop_lookup_desc, (vop_t *) dead_lookup },
|
||||
{ &vop_mkdir_desc, (vop_t *) dead_badop },
|
||||
{ &vop_mknod_desc, (vop_t *) dead_badop },
|
||||
{ &vop_mmap_desc, (vop_t *) dead_badop },
|
||||
{ &vop_open_desc, (vop_t *) dead_open },
|
||||
{ &vop_pathconf_desc, (vop_t *) vop_ebadf }, /* per pathconf(2) */
|
||||
{ &vop_poll_desc, (vop_t *) dead_poll },
|
||||
|
@ -85,7 +85,6 @@ static int union_lookup1 __P((struct vnode *udvp, struct vnode **dvp,
|
||||
struct componentname *cnp));
|
||||
static int union_mkdir __P((struct vop_mkdir_args *ap));
|
||||
static int union_mknod __P((struct vop_mknod_args *ap));
|
||||
static int union_mmap __P((struct vop_mmap_args *ap));
|
||||
static int union_open __P((struct vop_open_args *ap));
|
||||
static int union_pathconf __P((struct vop_pathconf_args *ap));
|
||||
static int union_print __P((struct vop_print_args *ap));
|
||||
@ -1207,21 +1206,6 @@ union_revoke(ap)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
union_mmap(ap)
|
||||
struct vop_mmap_args /* {
|
||||
struct vnode *a_vp;
|
||||
int a_fflags;
|
||||
struct ucred *a_cred;
|
||||
struct proc *a_p;
|
||||
} */ *ap;
|
||||
{
|
||||
struct vnode *ovp = OTHERVP(ap->a_vp);
|
||||
|
||||
ap->a_vp = ovp;
|
||||
return (VCALL(ovp, VOFFSET(vop_mmap), ap));
|
||||
}
|
||||
|
||||
static int
|
||||
union_fsync(ap)
|
||||
struct vop_fsync_args /* {
|
||||
@ -1969,7 +1953,6 @@ static struct vnodeopv_entry_desc union_vnodeop_entries[] = {
|
||||
{ &vop_lookup_desc, (vop_t *) union_lookup },
|
||||
{ &vop_mkdir_desc, (vop_t *) union_mkdir },
|
||||
{ &vop_mknod_desc, (vop_t *) union_mknod },
|
||||
{ &vop_mmap_desc, (vop_t *) union_mmap },
|
||||
{ &vop_open_desc, (vop_t *) union_open },
|
||||
{ &vop_pathconf_desc, (vop_t *) union_pathconf },
|
||||
{ &vop_poll_desc, (vop_t *) union_poll },
|
||||
|
@ -112,7 +112,6 @@ static int nfs_access __P((struct vop_access_args *));
|
||||
static int nfs_getattr __P((struct vop_getattr_args *));
|
||||
static int nfs_setattr __P((struct vop_setattr_args *));
|
||||
static int nfs_read __P((struct vop_read_args *));
|
||||
static int nfs_mmap __P((struct vop_mmap_args *));
|
||||
static int nfs_fsync __P((struct vop_fsync_args *));
|
||||
static int nfs_remove __P((struct vop_remove_args *));
|
||||
static int nfs_link __P((struct vop_link_args *));
|
||||
@ -155,7 +154,6 @@ static struct vnodeopv_entry_desc nfsv2_vnodeop_entries[] = {
|
||||
{ &vop_lookup_desc, (vop_t *) nfs_lookup },
|
||||
{ &vop_mkdir_desc, (vop_t *) nfs_mkdir },
|
||||
{ &vop_mknod_desc, (vop_t *) nfs_mknod },
|
||||
{ &vop_mmap_desc, (vop_t *) nfs_mmap },
|
||||
{ &vop_open_desc, (vop_t *) nfs_open },
|
||||
{ &vop_poll_desc, (vop_t *) nfs_poll },
|
||||
{ &vop_print_desc, (vop_t *) nfs_print },
|
||||
@ -2746,25 +2744,6 @@ nfs_strategy(ap)
|
||||
return (error);
|
||||
}
|
||||
|
||||
/*
|
||||
* Mmap a file
|
||||
*
|
||||
* NB Currently unsupported.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
nfs_mmap(ap)
|
||||
struct vop_mmap_args /* {
|
||||
struct vnode *a_vp;
|
||||
int a_fflags;
|
||||
struct ucred *a_cred;
|
||||
struct proc *a_p;
|
||||
} */ *ap;
|
||||
{
|
||||
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
/*
|
||||
* fsync vnode op. Just call nfs_flush() with commit == 1.
|
||||
*/
|
||||
|
@ -112,7 +112,6 @@ static int nfs_access __P((struct vop_access_args *));
|
||||
static int nfs_getattr __P((struct vop_getattr_args *));
|
||||
static int nfs_setattr __P((struct vop_setattr_args *));
|
||||
static int nfs_read __P((struct vop_read_args *));
|
||||
static int nfs_mmap __P((struct vop_mmap_args *));
|
||||
static int nfs_fsync __P((struct vop_fsync_args *));
|
||||
static int nfs_remove __P((struct vop_remove_args *));
|
||||
static int nfs_link __P((struct vop_link_args *));
|
||||
@ -155,7 +154,6 @@ static struct vnodeopv_entry_desc nfsv2_vnodeop_entries[] = {
|
||||
{ &vop_lookup_desc, (vop_t *) nfs_lookup },
|
||||
{ &vop_mkdir_desc, (vop_t *) nfs_mkdir },
|
||||
{ &vop_mknod_desc, (vop_t *) nfs_mknod },
|
||||
{ &vop_mmap_desc, (vop_t *) nfs_mmap },
|
||||
{ &vop_open_desc, (vop_t *) nfs_open },
|
||||
{ &vop_poll_desc, (vop_t *) nfs_poll },
|
||||
{ &vop_print_desc, (vop_t *) nfs_print },
|
||||
@ -2746,25 +2744,6 @@ nfs_strategy(ap)
|
||||
return (error);
|
||||
}
|
||||
|
||||
/*
|
||||
* Mmap a file
|
||||
*
|
||||
* NB Currently unsupported.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
nfs_mmap(ap)
|
||||
struct vop_mmap_args /* {
|
||||
struct vnode *a_vp;
|
||||
int a_fflags;
|
||||
struct ucred *a_cred;
|
||||
struct proc *a_p;
|
||||
} */ *ap;
|
||||
{
|
||||
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
/*
|
||||
* fsync vnode op. Just call nfs_flush() with commit == 1.
|
||||
*/
|
||||
|
@ -903,7 +903,6 @@ struct vnodeopv_entry_desc ntfs_vnodeop_entries[] = {
|
||||
{ &vop_ioctl_desc, genfs_enoioctl }, /* ioctl */
|
||||
{ &vop_poll_desc, genfs_poll }, /* poll */
|
||||
{ &vop_revoke_desc, genfs_revoke }, /* revoke */
|
||||
{ &vop_mmap_desc, genfs_eopnotsupp }, /* mmap */
|
||||
{ &vop_fsync_desc, genfs_fsync }, /* fsync */
|
||||
{ &vop_seek_desc, genfs_seek }, /* seek */
|
||||
{ &vop_remove_desc, genfs_eopnotsupp }, /* remove */
|
||||
|
@ -85,7 +85,6 @@ static int ufs_makeinode __P((int mode, struct vnode *, struct vnode **, struct
|
||||
static int ufs_missingop __P((struct vop_generic_args *ap));
|
||||
static int ufs_mkdir __P((struct vop_mkdir_args *));
|
||||
static int ufs_mknod __P((struct vop_mknod_args *));
|
||||
static int ufs_mmap __P((struct vop_mmap_args *));
|
||||
static int ufs_open __P((struct vop_open_args *));
|
||||
static int ufs_pathconf __P((struct vop_pathconf_args *));
|
||||
static int ufs_print __P((struct vop_print_args *));
|
||||
@ -673,25 +672,6 @@ ufs_chown(vp, uid, gid, cred, p)
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Mmap a file
|
||||
*
|
||||
* NB Currently unsupported.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
int
|
||||
ufs_mmap(ap)
|
||||
struct vop_mmap_args /* {
|
||||
struct vnode *a_vp;
|
||||
int a_fflags;
|
||||
struct ucred *a_cred;
|
||||
struct proc *a_p;
|
||||
} */ *ap;
|
||||
{
|
||||
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
int
|
||||
ufs_remove(ap)
|
||||
struct vop_remove_args /* {
|
||||
@ -2216,7 +2196,6 @@ static struct vnodeopv_entry_desc ufs_vnodeop_entries[] = {
|
||||
{ &vop_lookup_desc, (vop_t *) vfs_cache_lookup },
|
||||
{ &vop_mkdir_desc, (vop_t *) ufs_mkdir },
|
||||
{ &vop_mknod_desc, (vop_t *) ufs_mknod },
|
||||
{ &vop_mmap_desc, (vop_t *) ufs_mmap },
|
||||
{ &vop_open_desc, (vop_t *) ufs_open },
|
||||
{ &vop_pathconf_desc, (vop_t *) ufs_pathconf },
|
||||
{ &vop_poll_desc, (vop_t *) vop_stdpoll },
|
||||
|
Loading…
Reference in New Issue
Block a user