diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -457,7 +457,7 @@ size_t avail; long reserved; - avail = swap_pager_avail + vm_free_count(); + avail = swap_pager_avail + vm_free_count() + vm_inactive_count(); reserved = atomic_load_long(&tmpfs_pages_reserved); if (__predict_false(avail < reserved)) return (0);