diff options
author | Bosko Milekic <bmilekic@FreeBSD.org> | 2000-11-11 23:04:15 +0000 |
---|---|---|
committer | Bosko Milekic <bmilekic@FreeBSD.org> | 2000-11-11 23:04:15 +0000 |
commit | e778918123db8c36aac6665f0b7ecd62371ca87c (patch) | |
tree | 883699841ec6448c688cdf68ff2088b9b5c2473e /sys/kern/uipc_syscalls.c | |
parent | e61715de39af65bd575c31be9ffe8f77eb4614e8 (diff) | |
download | src-e778918123db8c36aac6665f0b7ecd62371ca87c.tar.gz src-e778918123db8c36aac6665f0b7ecd62371ca87c.zip |
* Have m_pulldown() use the new M_WRITABLE() macro in order to determine
whether the given ext_buf is shared.
* Have the sf_bufs be setup with the mbuf subsystem using MEXTADD() with the
two new arguments.
Note: m_pulldown() is somewhat crotchy; the added comment explains the
situation.
Reviewed by: jlemon
Notes
Notes:
svn path=/head/; revision=68618
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index e3edad8e1f13..83ddc355e93f 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1625,7 +1625,8 @@ retry_lookup: /* * Setup external storage for mbuf. */ - MEXTADD(m, sf->kva, PAGE_SIZE, sf_buf_free, NULL); + MEXTADD(m, sf->kva, PAGE_SIZE, sf_buf_free, NULL, M_RDONLY, + EXT_SFBUF); m->m_data = (char *) sf->kva + pgoff; m->m_pkthdr.len = m->m_len = xfsize; /* |