summaryrefslogtreecommitdiff
path: root/fs/bcachefs/btree_update_interior.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-09-04 00:32:42 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:11 +0300
commit8f54337dc6825f323f7761c182d98efdd180ce70 (patch)
tree6a095523f764170174ecd382bb4cfcfd6c2ef850 /fs/bcachefs/btree_update_interior.h
parentfbf14104dabe91e6c3b5544f9289eebc94a52c93 (diff)
downloadlinux-8f54337dc6825f323f7761c182d98efdd180ce70.tar.xz
bcachefs: Fix initialization of bch_write_op.nonce
If an extent ends up with a replica that is encrypted an a replica that isn't encrypted (due the user changing options), and then copygc/rebalance moves one of the replicas by reading from the unencrypted replica, we had a bug where we wouldn't correctly initialize op->nonce - for each crc field in an extent, crc.offset + crc.nonce must be equal. This patch fixes that by moving op.nonce initialization to bch2_migrate_write_init. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/btree_update_interior.h')
0 files changed, 0 insertions, 0 deletions