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:
Ryan Moeller 2020-07-25 13:47:18 -04:00 committed by GitHub
parent 6fba7bfd0e
commit cb18d88060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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;