Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern pass B_PHYS|B_RAW also in nestio_setup(), courtesy ...
details: https://anonhg.NetBSD.org/src/rev/7f9ca1bf0891
branches: trunk
changeset: 1009578:7f9ca1bf0891
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Mon Apr 27 07:51:02 2020 +0000
description:
pass B_PHYS|B_RAW also in nestio_setup(), courtesy to e.g. xbd(4), which
wants to know whether the buf came from user space or bio subsystem
diffstat:
sys/kern/vfs_bio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 97ea30f7086b -r 7f9ca1bf0891 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c Mon Apr 27 07:30:54 2020 +0000
+++ b/sys/kern/vfs_bio.c Mon Apr 27 07:51:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_bio.c,v 1.294 2020/04/20 21:39:05 ad Exp $ */
+/* $NetBSD: vfs_bio.c,v 1.295 2020/04/27 07:51:02 jdolecek Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009, 2019, 2020 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.294 2020/04/20 21:39:05 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.295 2020/04/27 07:51:02 jdolecek Exp $");
#ifdef _KERNEL_OPT
#include "opt_bufcache.h"
@@ -2026,7 +2026,7 @@
void
nestiobuf_setup(buf_t *mbp, buf_t *bp, int offset, size_t size)
{
- const int b_pass = mbp->b_flags & (B_READ|B_MEDIA_FLAGS);
+ const int b_pass = mbp->b_flags & (B_READ|B_PHYS|B_RAW|B_MEDIA_FLAGS);
struct vnode *vp = mbp->b_vp;
KASSERT(mbp->b_bcount >= offset + size);
Home |
Main Index |
Thread Index |
Old Index