mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-14 12:10:26 +03:00
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
|
uint64_t
|
||||||
arc_all_memory(void)
|
arc_all_memory(void)
|
||||||
{
|
{
|
||||||
return ((uint64_t)ptob(physmem));
|
return (ptob(physmem));
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -204,8 +204,7 @@ arc_memory_throttle(spa_t *spa, uint64_t reserve, uint64_t txg)
|
|||||||
uint64_t
|
uint64_t
|
||||||
arc_free_memory(void)
|
arc_free_memory(void)
|
||||||
{
|
{
|
||||||
/* XXX */
|
return (ptob(freemem));
|
||||||
return (0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static eventhandler_tag arc_event_lowmem = NULL;
|
static eventhandler_tag arc_event_lowmem = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user