From f959841d17d1ed6d25f57c311b9f2241f6b34ac7 Mon Sep 17 00:00:00 2001 From: pk Date: Mon, 26 May 1997 20:28:38 +0000 Subject: [PATCH] Pass correct offset to vn_rdwr(). --- sys/dev/vnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c index b50e37bc6572..42e18f141db5 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -1,4 +1,4 @@ -/* $NetBSD: vnd.c,v 1.37 1997/05/25 22:27:16 pk Exp $ */ +/* $NetBSD: vnd.c,v 1.38 1997/05/26 20:28:38 pk Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -318,7 +318,7 @@ vndstrategy(bp) int rw = (flags & B_READ) ? UIO_READ : UIO_WRITE; sz = resid; error = vn_rdwr(rw, vnd->sc_vp, addr, sz, - dbtob(bp->b_blkno), UIO_SYSSPACE, + bn, UIO_SYSSPACE, IO_SYNC | IO_NODELOCKED, vnd->sc_cred, &resid, bp->b_proc); bp->b_resid -= (sz - resid);