Module Name: src
Committed By: riastradh
Date: Sun Dec 19 01:24:49 UTC 2021
Modified Files:
src/sys/external/bsd/common/include/linux: slab.h
Log Message:
Define kmem_cache_shrink = pool_cache_reclaim.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/external/bsd/common/include/linux/slab.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/common/include/linux/slab.h
diff -u src/sys/external/bsd/common/include/linux/slab.h:1.1 src/sys/external/bsd/common/include/linux/slab.h:1.2
--- src/sys/external/bsd/common/include/linux/slab.h:1.1 Mon Aug 27 15:45:06 2018
+++ src/sys/external/bsd/common/include/linux/slab.h Sun Dec 19 01:24:49 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: slab.h,v 1.1 2018/08/27 15:45:06 riastradh Exp $ */
+/* $NetBSD: slab.h,v 1.2 2021/12/19 01:24:49 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -206,4 +206,11 @@ kmem_cache_free(struct kmem_cache *kc, v
pool_cache_put(kc->kc_pool_cache, ptr);
}
+static inline void
+kmem_cache_shrink(struct kmem_cache *kc)
+{
+
+ pool_cache_reclaim(kc->kc_pool_cache);
+}
+
#endif /* _LINUX_SLAB_H_ */