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

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