Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/ufs/ufs/ufs_readwrite.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/ufs/ufs/ufs_readwrite.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.31 retrieving revision 1.31.2.1 diff -u -p -r1.31 -r1.31.2.1 --- src/sys/ufs/ufs/ufs_readwrite.c 2001/03/26 06:47:34 1.31 +++ src/sys/ufs/ufs/ufs_readwrite.c 2001/07/13 04:42:06 1.31.2.1 @@ -1,4 +1,4 @@ -/* $NetBSD: ufs_readwrite.c,v 1.31 2001/03/26 06:47:34 chs Exp $ */ +/* $NetBSD: ufs_readwrite.c,v 1.31.2.1 2001/07/13 04:42:06 perseant Exp $ */ /*- * Copyright (c) 1993 @@ -374,10 +374,10 @@ WRITE(void *v) } #ifdef LFS_READWRITE if (!error) - error = lfs_reserve(fs, vp, fsbtodb(fs, NIADDR + 1)); + error = lfs_reserve(fs, vp, btofsb(fs, (NIADDR + 1) << fs->lfs_bshift)); (void)VOP_BWRITE(bp); if (!error) - lfs_reserve(fs, vp, fsbtodb(fs, -(NIADDR + 1))); + lfs_reserve(fs, vp, -btofsb(fs, (NIADDR + 1) << fs->lfs_bshift)); #else if (ioflag & IO_SYNC) (void)bwrite(bp);