Skip to content

Commit

Permalink
zfs: Update use of UMA-related symbols in arc_available_memory
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bnovkov authored and bsdjhb committed Sep 3, 2024
1 parent 529a6e9 commit efdc278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/os/freebsd/zfs/arc_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efdc278

Please sign in to comment.