summaryrefslogtreecommitdiff
path: root/libbcache/keybuf_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-03-19 15:56:34 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-03-19 17:31:47 -0800
commit5ec39af8eaba49aee7bafa44c661da39e2f40dc3 (patch)
tree1fb1a981602cbf22c7d2b2dba1168c715d7cecb5 /libbcache/keybuf_types.h
parentbb1941de5378a7b8122d3575dcbc7d0aeb6326f0 (diff)
Rename from bcache-tools to bcachefs-tools
Diffstat (limited to 'libbcache/keybuf_types.h')
-rw-r--r--libbcache/keybuf_types.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/libbcache/keybuf_types.h b/libbcache/keybuf_types.h
deleted file mode 100644
index 3facc4a0..00000000
--- a/libbcache/keybuf_types.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef _BCACHE_KEYBUF_TYPES_H
-#define _BCACHE_KEYBUF_TYPES_H
-
-struct keybuf_key {
- struct rb_node node;
- BKEY_PADDED(key);
- atomic_t ref;
-};
-
-#define KEYBUF_REFILL_BATCH 500
-
-struct keybuf {
- struct bpos last_scanned;
- spinlock_t lock;
-
- /*
- * Beginning and end of range in rb tree - so that we can skip taking
- * lock and checking the rb tree when we need to check for overlapping
- * keys.
- */
- struct bpos start;
- struct bpos end;
-
- struct rb_root keys;
-
- unsigned max_in_flight;
- struct semaphore in_flight;
-
- DECLARE_ARRAY_ALLOCATOR(struct keybuf_key, freelist,
- KEYBUF_REFILL_BATCH);
-};
-
-#endif /* _BCACHE_KEYBUF_TYPES_H */