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