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

60 lines
1.4 KiB
Diff
Raw Normal View History

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