#include "bcache.h"
#include "btree.h"
#include "debug.h"
#include "request.h"
#include <trace/events/bcache.h>
struct moving_io { … };
static bool moving_pred(struct keybuf *buf, struct bkey *k)
{ … }
static CLOSURE_CALLBACK(moving_io_destructor)
{ … }
static CLOSURE_CALLBACK(write_moving_finish)
{ … }
static void read_moving_endio(struct bio *bio)
{ … }
static void moving_init(struct moving_io *io)
{ … }
static CLOSURE_CALLBACK(write_moving)
{ … }
static CLOSURE_CALLBACK(read_moving_submit)
{ … }
static void read_moving(struct cache_set *c)
{ … }
static bool new_bucket_cmp(const void *l, const void *r, void __always_unused *args)
{ … }
static void new_bucket_swap(void *l, void *r, void __always_unused *args)
{ … }
static unsigned int bucket_heap_top(struct cache *ca)
{ … }
void bch_moving_gc(struct cache_set *c)
{ … }
void bch_moving_init_cache_set(struct cache_set *c)
{ … }