Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs add casts to an assertion in ffs_alloc() so it w...
details: https://anonhg.NetBSD.org/src/rev/fa108f74ecf6
branches: trunk
changeset: 503391:fa108f74ecf6
user: chs <chs%NetBSD.org@localhost>
date: Mon Feb 05 10:55:02 2001 +0000
description:
add casts to an assertion in ffs_alloc() so it works with offsets past 4GB.
diffstat:
sys/ufs/ffs/ffs_alloc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 9d069cc43a81 -r fa108f74ecf6 sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c Mon Feb 05 10:42:40 2001 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c Mon Feb 05 10:55:02 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_alloc.c,v 1.40 2001/01/18 20:28:19 jdolecek Exp $ */
+/* $NetBSD: ffs_alloc.c,v 1.41 2001/02/05 10:55:02 chs Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -120,8 +120,8 @@
if (ITOV(ip)->v_type == VREG && lbn > 0) {
struct vm_page *pg;
struct uvm_object *uobj = &ITOV(ip)->v_uvm.u_obj;
- voff_t off = trunc_page(lblktosize(fs, lbn));
- voff_t endoff = round_page(lblktosize(fs, lbn) + size);
+ voff_t off = trunc_page(lblktosize(fs, (voff_t)lbn));
+ voff_t endoff = round_page(lblktosize(fs, (voff_t)lbn) + size);
simple_lock(&uobj->vmobjlock);
while (off < endoff) {
Home |
Main Index |
Thread Index |
Old Index