Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/nfs Hum. This should be M_READONLY, not M_ROMAP.
details: https://anonhg.NetBSD.org/src/rev/4c637c8ce660
branches: trunk
changeset: 361366:4c637c8ce660
user: maxv <maxv%NetBSD.org@localhost>
date: Thu Apr 26 20:10:44 2018 +0000
description:
Hum. This should be M_READONLY, not M_ROMAP.
M_ROMAP tells us whether the mbuf storage is mapped on a read-only page.
But an mbuf can still be read-only in the sense that the storage is
shared with other mbufs.
diffstat:
sys/nfs/nfs_subs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b690d2c5d547 -r 4c637c8ce660 sys/nfs/nfs_subs.c
--- a/sys/nfs/nfs_subs.c Thu Apr 26 19:56:55 2018 +0000
+++ b/sys/nfs/nfs_subs.c Thu Apr 26 20:10:44 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_subs.c,v 1.230 2018/01/21 20:36:49 christos Exp $ */
+/* $NetBSD: nfs_subs.c,v 1.231 2018/04/26 20:10:44 maxv Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.230 2018/01/21 20:36:49 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.231 2018/04/26 20:10:44 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_nfs.h"
@@ -1602,7 +1602,7 @@
char *cp;
int i;
- if (M_ROMAP(m) || M_TRAILINGSPACE(m) < nul) {
+ if (M_READONLY(m) || M_TRAILINGSPACE(m) < nul) {
struct mbuf *n;
KDASSERT(MLEN >= nul);
Home |
Main Index |
Thread Index |
Old Index