Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/dev Add the missing strategy argument of l...
details: https://anonhg.NetBSD.org/src/rev/ae05bc2002cc
branches: trunk
changeset: 358669:ae05bc2002cc
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sat Jan 13 10:08:35 2018 +0000
description:
Add the missing strategy argument of ldattach()
diffstat:
sys/arch/usermode/dev/ld_thunkbus.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r e87bd7a1ae90 -r ae05bc2002cc sys/arch/usermode/dev/ld_thunkbus.c
--- a/sys/arch/usermode/dev/ld_thunkbus.c Sat Jan 13 03:35:40 2018 +0000
+++ b/sys/arch/usermode/dev/ld_thunkbus.c Sat Jan 13 10:08:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_thunkbus.c,v 1.30 2012/01/21 22:09:57 reinoud Exp $ */
+/* $NetBSD: ld_thunkbus.c,v 1.31 2018/01/13 10:08:35 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.30 2012/01/21 22:09:57 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.31 2018/01/13 10:08:35 reinoud Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -135,7 +135,7 @@
sc->busy = false;
- ldattach(ld);
+ ldattach(ld, BUFQ_DISK_DEFAULT_STRAT);
}
#ifdef LD_USE_AIO
@@ -260,7 +260,7 @@
struct ld_thunkbus_softc *sc = (struct ld_thunkbus_softc *)ld;
struct ld_thunkbus_transfer *tt = &sc->sc_tt;
struct buf *bp = tt->tt_bp;
- off_t offset = bp->b_rawblkno * ld->sc_secsize;
+ off_t offset = (off_t) bp->b_rawblkno * ld->sc_secsize;
int64_t ret;
if (!sc->busy)
Home |
Main Index |
Thread Index |
Old Index