diff options
author | phk <phk@FreeBSD.org> | 2004-09-07 08:53:03 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-09-07 08:53:03 +0000 |
commit | 6dd3840f3a6bfaffc38aa09c6cb22e3f9b1837c8 (patch) | |
tree | be188f14886a36301533606df113a67dd21cb6a5 | |
parent | e73978dc2243115bc4470a31517686b2f80736b2 (diff) | |
download | FreeBSD-src-6dd3840f3a6bfaffc38aa09c6cb22e3f9b1837c8.zip FreeBSD-src-6dd3840f3a6bfaffc38aa09c6cb22e3f9b1837c8.tar.gz |
Explicitly pass the vnode to the nw_doio() function.
-rw-r--r-- | sys/fs/nwfs/nwfs.h | 2 | ||||
-rw-r--r-- | sys/fs/nwfs/nwfs_io.c | 5 | ||||
-rw-r--r-- | sys/fs/nwfs/nwfs_vnops.c | 4 |
3 files changed, 4 insertions, 7 deletions
diff --git a/sys/fs/nwfs/nwfs.h b/sys/fs/nwfs/nwfs.h index 3d2a262..a8a9ad2 100644 --- a/sys/fs/nwfs/nwfs.h +++ b/sys/fs/nwfs/nwfs.h @@ -75,7 +75,7 @@ struct nwmount { int ncp_conn_logged_in(struct nwmount *); int nwfs_ioctl(struct vop_ioctl_args *ap); -int nwfs_doio(struct buf *bp, struct ucred *cr, struct thread *td); +int nwfs_doio(struct vnode *vp, struct buf *bp, struct ucred *cr, struct thread *td); int nwfs_vinvalbuf(struct vnode *vp, int flags, struct ucred *cred, struct thread *td, int intrflg); #endif /* _KERNEL */ diff --git a/sys/fs/nwfs/nwfs_io.c b/sys/fs/nwfs/nwfs_io.c index 22f0e61..6b0d563 100644 --- a/sys/fs/nwfs/nwfs_io.c +++ b/sys/fs/nwfs/nwfs_io.c @@ -260,20 +260,19 @@ nwfs_writevnode(vp, uiop, cred, ioflag) * Do an I/O operation to/from a cache block. */ int -nwfs_doio(bp, cr, td) +nwfs_doio(vp, bp, cr, td) + struct vnode *vp; struct buf *bp; struct ucred *cr; struct thread *td; { struct uio *uiop; - struct vnode *vp; struct nwnode *np; struct nwmount *nmp; int error = 0; struct uio uio; struct iovec io; - vp = bp->b_vp; np = VTONW(vp); nmp = VFSTONWFS(vp->v_mount); uiop = &uio; diff --git a/sys/fs/nwfs/nwfs_vnops.c b/sys/fs/nwfs/nwfs_vnops.c index 4215e63..d3c97f7 100644 --- a/sys/fs/nwfs/nwfs_vnops.c +++ b/sys/fs/nwfs/nwfs_vnops.c @@ -796,8 +796,6 @@ static int nwfs_strategy (ap) struct thread *td; int error = 0; - KASSERT(ap->a_vp == ap->a_bp->b_vp, ("%s(%p != %p)", - __func__, ap->a_vp, ap->a_bp->b_vp)); NCPVNDEBUG("\n"); if (bp->b_flags & B_ASYNC) td = (struct thread *)0; @@ -813,7 +811,7 @@ static int nwfs_strategy (ap) * otherwise just do it ourselves. */ if ((bp->b_flags & B_ASYNC) == 0 ) - error = nwfs_doio(bp, cr, td); + error = nwfs_doio(ap->a_vp, bp, cr, td); return (error); } |