diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-07-16 12:57:27 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:09 -0400 |
commit | e719fc34f00004813f98c8c3f8f3f364b1d77afc (patch) | |
tree | 45814bc7e6b9e45beafff64d146fc7e048d7c202 /fs/bcachefs/bcachefs_format.h | |
parent | 47924527e643e6160c6726669b90cad8aeb6d977 (diff) | |
download | lwn-e719fc34f00004813f98c8c3f8f3f364b1d77afc.tar.gz lwn-e719fc34f00004813f98c8c3f8f3f364b1d77afc.zip |
bcachefs: BSET_OFFSET()
Add a field to struct bset for the sector offset within the btree node
where it was written.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h index 659bcfe09fb4..156198850b67 100644 --- a/fs/bcachefs/bcachefs_format.h +++ b/fs/bcachefs/bcachefs_format.h @@ -1749,6 +1749,9 @@ LE32_BITMASK(BSET_BIG_ENDIAN, struct bset, flags, 4, 5); LE32_BITMASK(BSET_SEPARATE_WHITEOUTS, struct bset, flags, 5, 6); +/* Sector offset within the btree node: */ +LE32_BITMASK(BSET_OFFSET, struct bset, flags, 16, 32); + struct btree_node { struct bch_csum csum; __le64 magic; |