Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makefs/ffs use (size / DEV_BSIZE) instead of btodb(...
details: https://anonhg.NetBSD.org/src/rev/b0c8d1c0d13b
branches: trunk
changeset: 521815:b0c8d1c0d13b
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Feb 06 15:36:30 2002 +0000
description:
use (size / DEV_BSIZE) instead of btodb(size). fixes cross build issue.
diffstat:
usr.sbin/makefs/ffs/ffs_alloc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 45c4203e3ef5 -r b0c8d1c0d13b usr.sbin/makefs/ffs/ffs_alloc.c
--- a/usr.sbin/makefs/ffs/ffs_alloc.c Wed Feb 06 14:58:15 2002 +0000
+++ b/usr.sbin/makefs/ffs/ffs_alloc.c Wed Feb 06 15:36:30 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_alloc.c,v 1.8 2002/01/31 22:44:03 tv Exp $ */
+/* $NetBSD: ffs_alloc.c,v 1.9 2002/02/06 15:36:30 lukem Exp $ */
/* From: NetBSD: ffs_alloc.c,v 1.50 2001/09/06 02:16:01 lukem Exp */
/*
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: ffs_alloc.c,v 1.8 2002/01/31 22:44:03 tv Exp $");
+__RCSID("$NetBSD: ffs_alloc.c,v 1.9 2002/02/06 15:36:30 lukem Exp $");
#endif /* !__lint */
#include <sys/param.h>
@@ -112,7 +112,7 @@
bno = (ufs_daddr_t)ffs_hashalloc(ip, cg, (long)bpref, size,
ffs_alloccg);
if (bno > 0) {
- ip->i_ffs_blocks += btodb(size);
+ ip->i_ffs_blocks += size / DEV_BSIZE;
*bnp = bno;
return (0);
}
Home |
Main Index |
Thread Index |
Old Index