Module Name: src
Committed By: maxv
Date: Thu Apr 26 20:10:44 UTC 2018
Modified Files:
src/sys/nfs: nfs_subs.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.230 -r1.231 src/sys/nfs/nfs_subs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/nfs/nfs_subs.c
diff -u src/sys/nfs/nfs_subs.c:1.230 src/sys/nfs/nfs_subs.c:1.231
--- src/sys/nfs/nfs_subs.c:1.230 Sun Jan 21 20:36:49 2018
+++ src/sys/nfs/nfs_subs.c Thu Apr 26 20:10:44 2018
@@ -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 @@ nfs_zeropad(struct mbuf *mp, int len, in
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);