From a4b88e6678c3549a536fb68f7e7068910a085aea Mon Sep 17 00:00:00 2001 From: mpi Date: Thu, 22 Apr 2021 11:54:32 +0000 Subject: [PATCH] Keep under #ifdef TMPFS functions to grow/shrink uaobj. ok patrick@ --- sys/uvm/uvm_aobj.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/uvm/uvm_aobj.c b/sys/uvm/uvm_aobj.c index f95b127900e..cbb30e56e73 100644 --- a/sys/uvm/uvm_aobj.c +++ b/sys/uvm/uvm_aobj.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_aobj.c,v 1.94 2021/03/31 08:53:39 mpi Exp $ */ +/* $OpenBSD: uvm_aobj.c,v 1.95 2021/04/22 11:54:32 mpi Exp $ */ /* $NetBSD: uvm_aobj.c,v 1.39 2001/02/18 21:19:08 chs Exp $ */ /* @@ -416,6 +416,7 @@ uao_free(struct uvm_aobj *aobj) * pager functions */ +#ifdef TMPFS /* * Shrink an aobj to a given number of pages. The procedure is always the same: * assess the necessity of data structure conversion (hash to array), secure @@ -692,6 +693,7 @@ uao_grow(struct uvm_object *uobj, int pages) else return uao_grow_convert(uobj, pages); } +#endif /* TMPFS */ /* * uao_create: create an aobj of the given size and return its uvm_object. -- 2.20.1