summaryrefslogtreecommitdiff
path: root/libbcachefs/alloc_background.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-08-27 17:46:09 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2019-08-28 00:31:57 -0400
commitc8322ce68cf5e435f0a3b12569e89c77e7089eb6 (patch)
treea2073cb4cc7bdb7db9804e8cb40b5f45986e607d /libbcachefs/alloc_background.c
parentcc41f52bcc7bcc6ec3a63c10fd2b84bc3e2f6615 (diff)
Update bcachefs sources to 4ed63a3241 bcachefs: Trust in memory bucket mark
Diffstat (limited to 'libbcachefs/alloc_background.c')
-rw-r--r--libbcachefs/alloc_background.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libbcachefs/alloc_background.c b/libbcachefs/alloc_background.c
index 4cf728ce..8b06f51d 100644
--- a/libbcachefs/alloc_background.c
+++ b/libbcachefs/alloc_background.c
@@ -205,20 +205,6 @@ void bch2_alloc_to_text(struct printbuf *out, struct bch_fs *c,
get_alloc_field(a.v, &d, i));
}
-static inline struct bkey_alloc_unpacked
-alloc_mem_to_key(struct bucket *g, struct bucket_mark m)
-{
- return (struct bkey_alloc_unpacked) {
- .gen = m.gen,
- .oldest_gen = g->oldest_gen,
- .data_type = m.data_type,
- .dirty_sectors = m.dirty_sectors,
- .cached_sectors = m.cached_sectors,
- .read_time = g->io_time[READ],
- .write_time = g->io_time[WRITE],
- };
-}
-
int bch2_alloc_read(struct bch_fs *c, struct journal_keys *journal_keys)
{
struct btree_trans trans;