mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
zfs: Update use of UMA-related symbols in arc_available_memory
da76d34
repurposed the use of UMA_MD_SMALL_ALLOC in a way that breaks arc_available_memory on -CURRENT. This change ensures that arc_available_memory uses the new symbol while maintaining compatibility with older FreeBSD releases. This change was submitted to upstream as well. Approved by: markj (mentor) Fixes:da76d34
This commit is contained in:
parent
e24ff5c99b
commit
4c053c17f2
|
@ -89,7 +89,7 @@ arc_available_memory(void)
|
|||
if (n < lowest) {
|
||||
lowest = n;
|
||||
}
|
||||
#if defined(__i386) || !defined(UMA_MD_SMALL_ALLOC)
|
||||
#if !defined(UMA_MD_SMALL_ALLOC) && !defined(UMA_USE_DMAP)
|
||||
/*
|
||||
* If we're on an i386 platform, it's possible that we'll exhaust the
|
||||
* kernel heap space before we ever run out of available physical
|
||||
|
|
Loading…
Reference in a new issue