Run LRU during fellow_cache_test

parent b21b5681
......@@ -2973,8 +2973,6 @@ fellow_cache_async_thread(void *priv)
return (NULL);
}
// XXX better way
#ifndef TEST_DRIVER
static inline void
fellow_cache_seg_evict_locked(
struct fellow_cache_seg *fcs, struct buddy_ptr_extent *alloc)
......@@ -3350,7 +3348,6 @@ fellow_cache_lru_thread(struct worker *wrk, void *priv)
free(r);
return (NULL);
}
#endif // TEST_DRIVER
/* returns if moved */
int
......@@ -5103,21 +5100,20 @@ fellow_cache_fini(struct fellow_cache **fcp)
#include "vsha256.h"
#include "fellow_testenv.h"
void
stvfe_sumstat(struct worker *wrk)
{
(void) wrk;
}
int
stvfe_mutate(struct worker *wrk, struct fellow_cache_lru *lru,
struct objcore *oc)
{
WRONG("no lru during test");
return (1);
WRONG("fellow_cache_test objects to not have an objcore");
return (0);
}
static void *
fellow_cache_lru_thread(struct worker *wrk, void *priv)
{
(void) wrk;
(void) priv;
return (NULL);
}
#ifdef DEBUG
const char * const filename = "/tmp/fellowfile.cachetest";
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment