From 51a339dd4b3967fdfbfc5b5f8bda3a92b34d199d Mon Sep 17 00:00:00 2001 From: yamt Date: Wed, 30 Nov 2005 03:45:16 +0000 Subject: [PATCH] revert rev.1.111 as it isn't necessary or correct. - currently no one in tree has a problem with zero b_lblkno, afaik. - this buf is used for "devvp", so it doesn't make sense to use lbn in the "vp". --- sys/miscfs/genfs/genfs_vnops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/miscfs/genfs/genfs_vnops.c b/sys/miscfs/genfs/genfs_vnops.c index 948c49206c1f..804c02a1cbfb 100644 --- a/sys/miscfs/genfs/genfs_vnops.c +++ b/sys/miscfs/genfs/genfs_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: genfs_vnops.c,v 1.111 2005/11/30 01:46:06 reinoud Exp $ */ +/* $NetBSD: genfs_vnops.c,v 1.112 2005/11/30 03:45:16 yamt Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.111 2005/11/30 01:46:06 reinoud Exp $"); +__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.112 2005/11/30 03:45:16 yamt Exp $"); #if defined(_KERNEL_OPT) #include "opt_nfsserver.h" @@ -813,7 +813,7 @@ genfs_getpages(void *v) bp->b_vp = vp; bp->b_proc = NULL; } - bp->b_lblkno = lbn; + bp->b_lblkno = 0; bp->b_private = mbp; /* adjust physical blkno for partial blocks */