-/* $OpenBSD: ext2fs_extern.h,v 1.35 2014/07/14 08:54:13 pelikan Exp $ */
+/* $OpenBSD: ext2fs_extern.h,v 1.36 2016/08/10 07:53:02 natano Exp $ */
/* $NetBSD: ext2fs_extern.h,v 1.1 1997/06/11 09:33:55 bouyer Exp $ */
/*-
/* ext2fs_subr.c */
int ext2fs_bufatoff(struct inode *, off_t, char **, struct buf **);
-int ext2fs_vinit(struct mount *, struct vops *, struct vops *,
- struct vnode **);
+int ext2fs_vinit(struct mount *, struct vnode **);
#ifdef DIAGNOSTIC
void ext2fs_checkoverlap(struct buf *, struct inode *);
#endif
extern struct vops ext2fs_specvops;
#ifdef FIFO
extern struct vops ext2fs_fifovops;
-#define EXT2FS_FIFOOPS &ext2fs_fifovops
-#else
-#define EXT2FS_FIFOOPS NULL
#endif
-/* $OpenBSD: ext2fs_subr.c,v 1.34 2016/02/04 12:45:03 mikeb Exp $ */
+/* $OpenBSD: ext2fs_subr.c,v 1.35 2016/08/10 07:53:02 natano Exp $ */
/* $NetBSD: ext2fs_subr.c,v 1.1 1997/06/11 09:34:03 bouyer Exp $ */
/*
* Initialize the vnode associated with a new inode, handle aliased vnodes.
*/
int
-ext2fs_vinit(struct mount *mp, struct vops *specops,
- struct vops *fifoops, struct vnode **vpp)
+ext2fs_vinit(struct mount *mp, struct vnode **vpp)
{
struct inode *ip;
struct vnode *vp, *nvp;
switch(vp->v_type) {
case VCHR:
case VBLK:
- vp->v_op = specops;
+ vp->v_op = &ext2fs_specvops;
nvp = checkalias(vp, letoh32(ip->i_e2din->e2di_rdev), mp);
if (nvp != NULL) {
case VFIFO:
#ifdef FIFO
- vp->v_op = fifoops;
+ vp->v_op = &ext2fs_fifovops;
break;
#else
return (EOPNOTSUPP);
-/* $OpenBSD: ext2fs_vfsops.c,v 1.93 2016/06/19 11:54:33 natano Exp $ */
+/* $OpenBSD: ext2fs_vfsops.c,v 1.94 2016/08/10 07:53:02 natano Exp $ */
/* $NetBSD: ext2fs_vfsops.c,v 1.1 1997/06/11 09:34:07 bouyer Exp $ */
/*
* Initialize the vnode from the inode, check for aliases.
* Note that the underlying vnode may have changed.
*/
- error = ext2fs_vinit(mp, &ext2fs_specvops, EXT2FS_FIFOOPS, &vp);
+ error = ext2fs_vinit(mp, &vp);
if (error) {
vput(vp);
*vpp = NULL;