Author: jhb
Date: Wed Mar 18 14:51:03 2015
New Revision: 280222
URL: https://svnweb.freebsd.org/changeset/base/280222

Log:
  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().
  
  Differential Revision:        https://reviews.freebsd.org/D2080
  Reviewed by:  np, glebius
  MFC after:    2 weeks

Modified:
  head/sys/sys/mbuf.h

Modified: head/sys/sys/mbuf.h
==============================================================================
--- head/sys/sys/mbuf.h Wed Mar 18 14:49:16 2015        (r280221)
+++ head/sys/sys/mbuf.h Wed Mar 18 14:51:03 2015        (r280222)
@@ -578,6 +578,7 @@ m_extaddref(struct mbuf *m, caddr_t buf,
        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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to