haiku/headers
Augustin Cavalier d00cb444a6 kernel/vm: Decommit discarded pages of overcommitted caches.
Overcommitted caches should only have commitments equal to the
number of pages they actually contain, so we should decommit
whenever pages are discarded.

This changes the API of VMCache::Discard to return an ssize_t
of the size of pages that were discarded (or a negative error on
failure.) Nothing checked the return value besides things in VMCache
itself, it appears; but it apparently never fails, so that's fine.

Also add asserts to Commit() that the new commitment at least
encompasses all pages the cache actually contains.
2024-12-13 15:08:45 -05:00
..
build kernel/util: Introduce BumpAllocator. 2024-09-06 19:15:42 +00:00
compatibility libroot: move memmem for POSIX.1/2024 2024-11-04 17:55:40 +00:00
config HaikuConfig: Don't define __HAIKU_BEOS_COMPATIBLE_TYPES in kernel mode. 2024-09-24 12:10:35 -04:00
cpp userlandfs: use std::bitset for FSCapabilities 2023-07-10 06:27:18 +00:00
glibc Make public glibc header printf.h usable. 2013-07-17 18:07:56 +02:00
libs udis86: remove 2024-07-17 19:11:50 +00:00
os input: Adjust input_pointing_device_subtype enumeration and usages. 2024-12-11 19:11:45 +00:00
posix stdlib.h: Remove *rand48_r methods. 2024-12-10 13:15:06 -05:00
private kernel/vm: Decommit discarded pages of overcommitted caches. 2024-12-13 15:08:45 -05:00
tools cppunit: Enable CPPUNIT_HAVE_SSTREAM for the non-legacy GCC. 2022-03-29 19:09:38 -04:00