FreeBSD: Implement arc_free_memory
This is only used for the kstat, but something other than 0 is nice. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10626
This commit is contained in:
parent
6fba7bfd0e
commit
cb18d88060
|
@ -192,7 +192,7 @@ arc_prune_async(int64_t adjust)
|
|||
uint64_t
|
||||
arc_all_memory(void)
|
||||
{
|
||||
return ((uint64_t)ptob(physmem));
|
||||
return (ptob(physmem));
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -204,8 +204,7 @@ arc_memory_throttle(spa_t *spa, uint64_t reserve, uint64_t txg)
|
|||
uint64_t
|
||||
arc_free_memory(void)
|
||||
{
|
||||
/* XXX */
|
||||
return (0);
|
||||
return (ptob(freemem));
|
||||
}
|
||||
|
||||
static eventhandler_tag arc_event_lowmem = NULL;
|
||||
|
|
Loading…
Reference in New Issue