diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-02-07 13:38:02 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:35 -0400 |
commit | 548b3d209fa5c6aaa9db58a69d9f6cf4ce8978b6 (patch) | |
tree | 9f96fb50cf49b7b72070011ec1ab6260cd1d9610 /fs/bcachefs/recovery.c | |
parent | 237e80483a6466f3c1968c2a8bb115b3e24d951b (diff) | |
download | lwn-548b3d209fa5c6aaa9db58a69d9f6cf4ce8978b6.tar.gz lwn-548b3d209fa5c6aaa9db58a69d9f6cf4ce8978b6.zip |
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/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 29e6f9f00bad..c9d12f7c180e 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -1010,6 +1010,7 @@ int bch2_fs_recovery(struct bch_fs *c) c->disk_sb.sb->version = le16_to_cpu(bcachefs_metadata_version_current); c->disk_sb.sb->features[0] |= 1ULL << BCH_FEATURE_new_siphash; c->disk_sb.sb->features[0] |= 1ULL << BCH_FEATURE_new_extent_overwrite; + c->disk_sb.sb->features[0] |= 1ULL << BCH_FEATURE_btree_ptr_v2; write_sb = true; } |