2019-07-10 23:12:15 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2018-05-17 08:38:57 +03:00
|
|
|
#ifndef _BCACHEFS_MOVE_TYPES_H
|
|
|
|
#define _BCACHEFS_MOVE_TYPES_H
|
|
|
|
|
|
|
|
struct bch_move_stats {
|
|
|
|
enum bch_data_type data_type;
|
2019-03-28 12:21:24 +03:00
|
|
|
enum btree_id btree_id;
|
|
|
|
struct bpos pos;
|
2021-09-10 02:06:29 +03:00
|
|
|
struct list_head list;
|
|
|
|
char name[32];
|
2018-05-17 08:38:57 +03:00
|
|
|
|
|
|
|
atomic64_t keys_moved;
|
2020-06-14 02:31:45 +03:00
|
|
|
atomic64_t keys_raced;
|
2018-05-17 08:38:57 +03:00
|
|
|
atomic64_t sectors_moved;
|
|
|
|
atomic64_t sectors_seen;
|
|
|
|
atomic64_t sectors_raced;
|
|
|
|
};
|
|
|
|
|
2023-03-06 10:35:56 +03:00
|
|
|
struct move_bucket_in_flight {
|
|
|
|
struct bpos bucket;
|
|
|
|
u8 gen;
|
|
|
|
atomic_t count;
|
|
|
|
};
|
|
|
|
|
2018-05-17 08:38:57 +03:00
|
|
|
#endif /* _BCACHEFS_MOVE_TYPES_H */
|