diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-01-05 22:13:13 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:29 -0400 |
commit | 179e3434fac14a100bad2edba4fd401bffb67802 (patch) | |
tree | 9b1c82c1948ff18b046dffa6d41464eb36c61545 /fs/bcachefs/bcachefs_format.h | |
parent | 25be2e5d4a051ff2408c7ab007394e96798cf559 (diff) | |
download | lwn-179e3434fac14a100bad2edba4fd401bffb67802.tar.gz lwn-179e3434fac14a100bad2edba4fd401bffb67802.zip |
bcachefs: KEY_TYPE_set
A new empty key type, to be used when using a btree as a set.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/bcachefs_format.h')
-rw-r--r-- | fs/bcachefs/bcachefs_format.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h index 838754ad60c3..350317e8b34f 100644 --- a/fs/bcachefs/bcachefs_format.h +++ b/fs/bcachefs/bcachefs_format.h @@ -351,7 +351,8 @@ static inline void bkey_init(struct bkey *k) x(subvolume, 21) \ x(snapshot, 22) \ x(inode_v2, 23) \ - x(alloc_v3, 24) + x(alloc_v3, 24) \ + x(set, 25) enum bch_bkey_type { #define x(name, nr) KEY_TYPE_##name = nr, @@ -381,6 +382,10 @@ struct bch_hash_whiteout { struct bch_val v; }; +struct bch_set { + struct bch_val v; +}; + /* Extents */ /* |