From 61adb3377baa87703f7d1b50ec5b576258f74ba8 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 28 Nov 2011 09:05:36 -0500 Subject: [PATCH] rculfhash: document fini_table Signed-off-by: Mathieu Desnoyers --- rculfhash.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rculfhash.c b/rculfhash.c index 61dc09c..8c835de 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -1158,6 +1158,11 @@ void remove_table(struct cds_lfht *ht, unsigned long i, unsigned long len) partition_resize_helper(ht, i, len, remove_table_partition); } +/* + * fini_table() is never called for first_order == 0, which is why + * free_by_rcu_order == 0 can be used as criterion to know if free must + * be called. + */ static void fini_table(struct cds_lfht *ht, unsigned long first_order, unsigned long last_order) -- 2.34.1