zfs: Update use of UMA-related symbols in arc_available_memory
da76d34repurposed 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user