Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs no need to cast arg to lblktosize() any more
details: https://anonhg.NetBSD.org/src/rev/f9ccf4cd83e0
branches: trunk
changeset: 514368:f9ccf4cd83e0
user: lukem <lukem%NetBSD.org@localhost>
date: Fri Aug 31 03:38:45 2001 +0000
description:
no need to cast arg to lblktosize() any more
diffstat:
sys/ufs/ffs/ffs_alloc.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 6bd297abfc15 -r f9ccf4cd83e0 sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c Fri Aug 31 03:15:45 2001 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c Fri Aug 31 03:38:45 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_alloc.c,v 1.48 2001/08/30 15:17:28 lukem Exp $ */
+/* $NetBSD: ffs_alloc.c,v 1.49 2001/08/31 03:38:45 lukem 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, (voff_t)lbn));
- voff_t endoff = round_page(lblktosize(fs, (voff_t)lbn) + size);
+ voff_t off = trunc_page(lblktosize(fs, lbn));
+ voff_t endoff = round_page(lblktosize(fs, lbn) + size);
simple_lock(&uobj->vmobjlock);
while (off < endoff) {
@@ -206,8 +206,8 @@
if (ITOV(ip)->v_type == VREG) {
struct vm_page *pg;
struct uvm_object *uobj = &ITOV(ip)->v_uvm.u_obj;
- voff_t off = trunc_page(lblktosize(fs, (voff_t)lbprev));
- voff_t endoff = round_page(lblktosize(fs, (voff_t)lbprev) + osize);
+ voff_t off = trunc_page(lblktosize(fs, lbprev));
+ voff_t endoff = round_page(lblktosize(fs, lbprev) + osize);
simple_lock(&uobj->vmobjlock);
while (off < endoff) {
Home |
Main Index |
Thread Index |
Old Index