freebsd-skq/sys/fs/cd9660
Konstantin Belousov cd85379104 Make MAXPHYS tunable. Bump MAXPHYS to 1M.
Replace MAXPHYS by runtime variable maxphys. It is initialized from
MAXPHYS by default, but can be also adjusted with the tunable kern.maxphys.

Make b_pages[] array in struct buf flexible.  Size b_pages[] for buffer
cache buffers exactly to atop(maxbcachebuf) (currently it is sized to
atop(MAXPHYS)), and b_pages[] for pbufs is sized to atop(maxphys) + 1.
The +1 for pbufs allow several pbuf consumers, among them vmapbuf(),
to use unaligned buffers still sized to maxphys, esp. when such
buffers come from userspace (*).  Overall, we save significant amount
of otherwise wasted memory in b_pages[] for buffer cache buffers,
while bumping MAXPHYS to desired high value.

Eliminate all direct uses of the MAXPHYS constant in kernel and driver
sources, except a place which initialize maxphys.  Some random (and
arguably weird) uses of MAXPHYS, e.g. in linuxolator, are converted
straight.  Some drivers, which use MAXPHYS to size embeded structures,
get private MAXPHYS-like constant; their convertion is out of scope
for this work.

Changes to cam/, dev/ahci, dev/ata, dev/mpr, dev/mpt, dev/mvs,
dev/siis, where either submitted by, or based on changes by mav.

Suggested by: mav (*)
Reviewed by:	imp, mav, imp, mckusick, scottl (intermediate versions)
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D27225
2020-11-28 12:12:51 +00:00
..
cd9660_bmap.c
cd9660_iconv.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
cd9660_lookup.c cd9660: replace bcopy/bzero with C standard equivalents 2018-07-31 12:36:46 +00:00
cd9660_mount.h
cd9660_node.c vfs: drop the de facto curthread argument from VOP_INACTIVE 2020-10-20 07:19:03 +00:00
cd9660_node.h fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
cd9660_rrip.c fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
cd9660_rrip.h cd9660 pointer sign issues and missing __packed attribute 2018-08-15 06:42:31 +00:00
cd9660_util.c
cd9660_vfsops.c Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
cd9660_vnops.c fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
iso_rrip.h fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
iso.h cd9660 pointer sign issues and missing __packed attribute 2018-08-15 06:42:31 +00:00
TODO
TODO.hibler