Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/perseant-lfsv2]: src/sys/ufs/ufs Lingering change from the block address...
details: https://anonhg.NetBSD.org/src/rev/8ba77c39aca6
branches: perseant-lfsv2
changeset: 511432:8ba77c39aca6
user: perseant <perseant%NetBSD.org@localhost>
date: Fri Jul 13 04:42:06 2001 +0000
description:
Lingering change from the block addressing changeover: reserve the correct
number of bytes according to the number of fs blocks we may need to write.
diffstat:
sys/ufs/ufs/ufs_readwrite.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 285f4d137a62 -r 8ba77c39aca6 sys/ufs/ufs/ufs_readwrite.c
--- a/sys/ufs/ufs/ufs_readwrite.c Tue Jul 10 02:08:33 2001 +0000
+++ b/sys/ufs/ufs/ufs_readwrite.c Fri Jul 13 04:42:06 2001 +0000
@@ -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 @@
}
#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);
Home |
Main Index |
Thread Index |
Old Index