summaryrefslogtreecommitdiffstats
path: root/sys/sys/mbuf.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-04-16 15:09:46 +0000
committerjhb <jhb@FreeBSD.org>2015-04-16 15:09:46 +0000
commitef9ac77665b1a083417be12adc527b7c5dab3ba6 (patch)
treec49830c3ee15d7f36e084df3001c21c4a2f5295b /sys/sys/mbuf.h
parent7d9198468996080a1c70c8f106da6e86186ddc6f (diff)
downloadFreeBSD-src-ef9ac77665b1a083417be12adc527b7c5dab3ba6.zip
FreeBSD-src-ef9ac77665b1a083417be12adc527b7c5dab3ba6.tar.gz
MFC 280222:
Clear an mbuf's external storage flags in m_extaddref(). They are cleared in other places that set the external storage type (ext_type) such as m_cljset(), m_extadd(), mb_ctor_clust(), and vn_sendfile().
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r--sys/sys/mbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index fe66631..38644bf 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -564,6 +564,7 @@ m_extaddref(struct mbuf *m, caddr_t buf, u_int size, u_int *ref_cnt,
m->m_ext.ext_arg1 = arg1;
m->m_ext.ext_arg2 = arg2;
m->m_ext.ext_type = EXT_EXTREF;
+ m->m_ext.ext_flags = 0;
}
static __inline uma_zone_t
OpenPOWER on IntegriCloud