diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-02-07 21:38:02 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:35 +0300 |
commit | 548b3d209fa5c6aaa9db58a69d9f6cf4ce8978b6 (patch) | |
tree | 9f96fb50cf49b7b72070011ec1ab6260cd1d9610 /fs/bcachefs/bkey.h | |
parent | 237e80483a6466f3c1968c2a8bb115b3e24d951b (diff) | |
download | linux-548b3d209fa5c6aaa9db58a69d9f6cf4ce8978b6.tar.xz |
bcachefs: btree_ptr_v2
Add a new btree ptr type which contains the sequence number (random 64
bit cookie, actually) for that btree node - this lets us verify that
when we read in a btree node it really is the btree node we wanted.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bkey.h')
-rw-r--r-- | fs/bcachefs/bkey.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/bkey.h b/fs/bcachefs/bkey.h index 36e6ecc04514..aa729347e448 100644 --- a/fs/bcachefs/bkey.h +++ b/fs/bcachefs/bkey.h @@ -573,6 +573,7 @@ BKEY_VAL_ACCESSORS(stripe); BKEY_VAL_ACCESSORS(reflink_p); BKEY_VAL_ACCESSORS(reflink_v); BKEY_VAL_ACCESSORS(inline_data); +BKEY_VAL_ACCESSORS(btree_ptr_v2); /* byte order helpers */ |