diff options
author | Ryan Moeller <[email protected]> | 2020-07-25 13:47:18 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-25 10:47:18 -0700 |
commit | cb18d88060100ced29da1900f5a35e3deded0b36 (patch) | |
tree | ab55469de88719d0cbed126be6b78166bbc4ac2b /module/os | |
parent | 6fba7bfd0e2d7dc677278322158cd89816a53433 (diff) |
FreeBSD: Implement arc_free_memory
This is only used for the kstat, but something other than 0 is nice.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10626
Diffstat (limited to 'module/os')
-rw-r--r-- | module/os/freebsd/zfs/arc_os.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/os/freebsd/zfs/arc_os.c b/module/os/freebsd/zfs/arc_os.c index fc88e6e59..7415be919 100644 --- a/module/os/freebsd/zfs/arc_os.c +++ b/module/os/freebsd/zfs/arc_os.c @@ -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; |