Blame SOURCES/autofs-5.1.7-remove-unused-functions-cache_dump_multi-and-cache_dump_cache.patch

beb904
autofs-5.1.7 - remove unused functions cache_dump_multi() and cache_dump_cache()
beb904
beb904
From: Ian Kent <raven@themaw.net>
beb904
beb904
Remove debugging functions cache_dump_multi() and cache_dump_cache()
beb904
beb904
Signed-off-by: Ian Kent <raven@themaw.net>
beb904
---
beb904
 CHANGELOG   |    1 +
beb904
 lib/cache.c |   28 ----------------------------
beb904
 2 files changed, 1 insertion(+), 28 deletions(-)
beb904
beb904
--- autofs-5.1.4.orig/CHANGELOG
beb904
+++ autofs-5.1.4/CHANGELOG
beb904
@@ -29,6 +29,7 @@
beb904
 - rename tree implementation functions.
beb904
 - fix program map multi-mount lookup after mount fail.
beb904
 - add some multi-mount macros.
beb904
+- remove unused functions cache_dump_multi() and cache_dump_cache().
beb904
 
beb904
 xx/xx/2018 autofs-5.1.5
beb904
 - fix flag file permission.
beb904
--- autofs-5.1.4.orig/lib/cache.c
beb904
+++ autofs-5.1.4/lib/cache.c
beb904
@@ -24,34 +24,6 @@
beb904
 
beb904
 #include "automount.h"
beb904
 
beb904
-void cache_dump_multi(struct list_head *list)
beb904
-{
beb904
-	struct list_head *p;
beb904
-	struct mapent *me;
beb904
-
beb904
-	list_for_each(p, list) {
beb904
-		me = list_entry(p, struct mapent, multi_list);
beb904
-		logmsg("key=%s", me->key);
beb904
-	}
beb904
-}
beb904
-
beb904
-void cache_dump_cache(struct mapent_cache *mc)
beb904
-{
beb904
-	struct mapent *me;
beb904
-	unsigned int i;
beb904
-
beb904
-	for (i = 0; i < mc->size; i++) {
beb904
-		me = mc->hash[i];
beb904
-		if (me == NULL)
beb904
-			continue;
beb904
-		while (me) {
beb904
-			logmsg("me->key=%s me->multi=%p dev=%ld ino=%ld",
beb904
-				me->key, me->multi, me->dev, me->ino);
beb904
-			me = me->next;
beb904
-		}
beb904
-	}
beb904
-}
beb904
-
beb904
 void cache_readlock(struct mapent_cache *mc)
beb904
 {
beb904
 	int status;