Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/nfs Use M_MOVE_PKTHDR.



details:   https://anonhg.NetBSD.org/src/rev/222cfb652f2d
branches:  trunk
changeset: 318880:222cfb652f2d
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue May 08 16:47:58 2018 +0000
description:
Use M_MOVE_PKTHDR.

diffstat:

 sys/nfs/nfs_subs.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r 7d8855b02380 -r 222cfb652f2d sys/nfs/nfs_subs.c
--- a/sys/nfs/nfs_subs.c        Tue May 08 16:37:59 2018 +0000
+++ b/sys/nfs/nfs_subs.c        Tue May 08 16:47:58 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_subs.c,v 1.231 2018/04/26 20:10:44 maxv Exp $      */
+/*     $NetBSD: nfs_subs.c,v 1.232 2018/05/08 16:47:58 maxv Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.231 2018/04/26 20:10:44 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.232 2018/05/08 16:47:58 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_nfs.h"
@@ -942,10 +942,7 @@
                        *mdp = m1 = m_get(M_WAIT, MT_DATA);
                        MCLAIM(m1, m2->m_owner);
                        if ((m2->m_flags & M_PKTHDR) != 0) {
-                               /* XXX MOVE */
-                               M_COPY_PKTHDR(m1, m2);
-                               m_tag_delete_chain(m2, NULL);
-                               m2->m_flags &= ~M_PKTHDR;
+                               M_MOVE_PKTHDR(m1, m2);
                        }
                        if (havebuf) {
                                havebuf->m_next = m1;



Home | Main Index | Thread Index | Old Index