aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2021-12-05 16:37:56 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2021-12-05 18:44:47 +0000
commit2cb67bd7988ae2426736ae6c3364773291f6627a (patch)
treed4397f99b1d71cf4724da9913f982774ef44d267
parenta9cd5c30d64e213c537c76c2a261f7a222f348bf (diff)
downloadsrc-2cb67bd7988ae2426736ae6c3364773291f6627a.tar.gz
src-2cb67bd7988ae2426736ae6c3364773291f6627a.zip
uma: remove unused *item argument from cache_free()
Reviewed by: markj Differential revision: https://reviews.freebsd.org/D33272
-rw-r--r--sys/vm/uma_core.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 7b83d81a423d..5a9d9bb9fbf4 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -331,7 +331,7 @@ static uma_keg_t uma_kcreate(uma_zone_t zone, size_t size, uma_init uminit,
static int zone_import(void *, void **, int, int, int);
static void zone_release(void *, void **, int);
static bool cache_alloc(uma_zone_t, uma_cache_t, void *, int);
-static bool cache_free(uma_zone_t, uma_cache_t, void *, void *, int);
+static bool cache_free(uma_zone_t, uma_cache_t, void *, int);
static int sysctl_vm_zone_count(SYSCTL_HANDLER_ARGS);
static int sysctl_vm_zone_stats(SYSCTL_HANDLER_ARGS);
@@ -4410,7 +4410,7 @@ uma_zfree_smr(uma_zone_t zone, void *item)
critical_exit();
return;
}
- } while (cache_free(zone, cache, NULL, item, itemdomain));
+ } while (cache_free(zone, cache, NULL, itemdomain));
critical_exit();
/*
@@ -4504,7 +4504,7 @@ uma_zfree_arg(uma_zone_t zone, void *item, void *udata)
critical_exit();
return;
}
- } while (cache_free(zone, cache, udata, item, itemdomain));
+ } while (cache_free(zone, cache, udata, itemdomain));
critical_exit();
/*
@@ -4645,8 +4645,7 @@ zone_free_bucket(uma_zone_t zone, uma_bucket_t bucket, void *udata,
* the caller should retry.
*/
static __noinline bool
-cache_free(uma_zone_t zone, uma_cache_t cache, void *udata, void *item,
- int itemdomain)
+cache_free(uma_zone_t zone, uma_cache_t cache, void *udata, int itemdomain)
{
uma_cache_bucket_t cbucket;
uma_bucket_t newbucket, bucket;