1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys
Robert Watson 2a8c860fe3 In order to reduce use of M_EXT outside of the mbuf allocator and
socket-buffer implementations, introduce a return value for MCLGET()
(and m_cljget() that underlies it) to allow the caller to avoid testing
M_EXT itself.  Update all callers to use the return value.

With this change, very few network device drivers remain aware of
M_EXT; the primary exceptions lie in mbuf-chain pretty printers for
debugging, and in a few cases, custom mbuf and cluster allocation
implementations.

NB: This is a difficult-to-test change as it touches many drivers for
which I don't have physical devices.  Instead we've gone for intensive
review, but further post-commit review would definitely be appreciated
to spot errors where changes could not easily be made mechanically,
but were largely mechanical in nature.

Differential Revision:	https://reviews.freebsd.org/D1440
Reviewed by:	adrian, bz, gnn
Sponsored by:	EMC / Isilon Storage Division
2015-01-06 12:59:37 +00:00
..
amd64 On some Intel CPUs with a P-state but not C-state invariant TSC the TSC 2015-01-05 20:44:44 +00:00
arm Add 64-bit DMA support in the XHCI controller driver. 2015-01-05 20:22:18 +00:00
boot Missed change in r276688. Apologies for build breakage. 2015-01-05 16:52:25 +00:00
bsm
cam Hide block device VPD pages for non-block devices. 2014-12-23 15:18:28 +00:00
cddl Correct zpool list displaying invalid EXPANDSZ for unavailable pool vdevs 2014-12-31 04:54:48 +00:00
compat Regen for r276654 (__getcwd()). 2015-01-04 10:40:23 +00:00
conf Fix kernel build after r276730. 2015-01-06 09:39:42 +00:00
contrib In order to reduce use of M_EXT outside of the mbuf allocator and 2015-01-06 12:59:37 +00:00
crypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
ddb ddb: ANSI-fy function declarations. 2014-10-12 18:01:52 +00:00
dev In order to reduce use of M_EXT outside of the mbuf allocator and 2015-01-06 12:59:37 +00:00
fs Convert nullfs hash lock from a mutex to an rwlock. 2014-12-30 21:41:35 +00:00
gdb
geom Remove old ioctl use and support, once and for all. 2015-01-06 05:28:37 +00:00
gnu
i386 On some Intel CPUs with a P-state but not C-state invariant TSC the TSC 2015-01-05 20:44:44 +00:00
isa
kern Use crcopysafe(9) to make a copy of a process' credential struct. crcopy(9) 2015-01-05 23:07:22 +00:00
kgssapi Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
libkern Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
mips In order to reduce use of M_EXT outside of the mbuf allocator and 2015-01-06 12:59:37 +00:00
modules Refactor and split out the net80211 software scan engine from the rest 2015-01-06 02:08:45 +00:00
net Merge: r258322 from projects/pf branch 2015-01-06 08:39:06 +00:00
net80211 Refactor and split out the net80211 software scan engine from the rest 2015-01-06 02:08:45 +00:00
netgraph In order to reduce use of M_EXT outside of the mbuf allocator and 2015-01-06 12:59:37 +00:00
netinet To ease changes to underlying mbuf structure and the mbuf allocator, reduce 2015-01-05 09:58:32 +00:00
netinet6 To ease changes to underlying mbuf structure and the mbuf allocator, reduce 2015-01-05 09:58:32 +00:00
netipsec In order to reduce use of M_EXT outside of the mbuf allocator and 2015-01-06 12:59:37 +00:00
netnatm
netpfil Instead of creating a purge thread for every vnet, create 2015-01-06 09:03:03 +00:00
netsmb
nfs Remove the old NFS client and server from head, 2014-12-23 00:47:46 +00:00
nfsclient Remove the old NFS client and server from head, 2014-12-23 00:47:46 +00:00
nfsserver Remove the old NFS client and server from head, 2014-12-23 00:47:46 +00:00
nlm Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
ofed Fixes and updates for the Linux compatibility layer: 2015-01-06 10:02:14 +00:00
opencrypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
pc98 This configuration file removes several debugging options, including 2014-12-02 19:55:43 +00:00
powerpc Restore use of ofw_bus_intr_to_rl() in the pseries vdevice driver after fixing 2015-01-05 21:39:35 +00:00
rpc Add facility to stop all userspace processes. The supposed use of the 2014-12-13 16:18:29 +00:00
security Adjust printf format specifiers for dev_t and ino_t in kernel. 2014-12-17 07:27:19 +00:00
sparc64 This configuration file removes several debugging options, including 2014-12-02 19:55:43 +00:00
sys In order to reduce use of M_EXT outside of the mbuf allocator and 2015-01-06 12:59:37 +00:00
teken mdoc: improvements to SEE ALSO. 2014-12-27 07:07:37 +00:00
tools
ufs Handle MAKEENTRY cnp flag in the VOP_CREATE(). Curiously, some 2014-12-21 13:29:33 +00:00
vm Eliminate a stale debug message. The per-CPU cache locks were replaced 2014-12-31 17:44:57 +00:00
x86 On some Intel CPUs with a P-state but not C-state invariant TSC the TSC 2015-01-05 20:44:44 +00:00
xdr
xen xen: convert the Grant-table code to a NewBus device 2014-12-10 11:35:41 +00:00
Makefile