Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/common/include/linux Define kmem_cache_shri...



details:   https://anonhg.NetBSD.org/src/rev/ddf14075b027
branches:  trunk
changeset: 1027982:ddf14075b027
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:24:49 2021 +0000

description:
Define kmem_cache_shrink = pool_cache_reclaim.

diffstat:

 sys/external/bsd/common/include/linux/slab.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 68540d268f1e -r ddf14075b027 sys/external/bsd/common/include/linux/slab.h
--- a/sys/external/bsd/common/include/linux/slab.h      Sun Dec 19 01:24:43 2021 +0000
+++ b/sys/external/bsd/common/include/linux/slab.h      Sun Dec 19 01:24:49 2021 +0000
@@ -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 @@
        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_ */



Home | Main Index | Thread Index | Old Index