summaryrefslogtreecommitdiffstats
path: root/bftw.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-05-17 14:55:02 -0400
committerTavian Barnes <tavianator@tavianator.com>2016-05-17 14:55:02 -0400
commit4f7ced52c09ce4e59bf74989d71991a7da168fac (patch)
tree91bccc9527311ac5ad9a25dce69253fd65255507 /bftw.c
parentf108e0952615e08a304d4e8564789d3534233e69 (diff)
downloadbfs-4f7ced52c09ce4e59bf74989d71991a7da168fac.tar.xz
bftw: Remove some debugging counters that were left in accidentally.
Diffstat (limited to 'bftw.c')
-rw-r--r--bftw.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/bftw.c b/bftw.c
index 8f6492e..7a0594e 100644
--- a/bftw.c
+++ b/bftw.c
@@ -314,9 +314,6 @@ static bool dircache_should_retry(struct dircache *cache, const struct dircache_
}
}
-static size_t misses = 0;
-static size_t total = 0;
-
/**
* Open a dircache_entry.
*
@@ -340,13 +337,6 @@ static DIR *dircache_entry_open(struct dircache *cache, struct dircache_entry *e
const char *at_path = path;
struct dircache_entry *base = dircache_entry_base(cache, entry, &at_fd, &at_path);
- ++total;
- struct dircache_entry *asdf = entry;
- do {
- ++misses;
- asdf = asdf->parent;
- } while (asdf != base);
-
int flags = O_RDONLY | O_DIRECTORY | O_CLOEXEC;
int fd = openat(at_fd, at_path, flags);