Skip to content

Commit

Permalink
Clear an mbuf's external storage flags in m_extaddref(). They are cle…
Browse files Browse the repository at this point in the history
…ared

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
  • Loading branch information
bsdjhb committed Mar 18, 2015
1 parent 802960d commit c3453e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/sys/mbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,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
Expand Down

0 comments on commit c3453e7

Please sign in to comment.