summaryrefslogtreecommitdiff
path: root/fs/bcachefs/io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-10-13 13:12:26 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:13 -0400
commitb9a7d8ac5f6d66619de8a4e37b23574d1ca107cf (patch)
tree70189df972d3b56cfd85cb81ac5b85262dded1d3 /fs/bcachefs/io.c
parent776eaddb2cef366b16dac8857899dbb4cc5dfdb1 (diff)
downloadlwn-b9a7d8ac5f6d66619de8a4e37b23574d1ca107cf.tar.gz
lwn-b9a7d8ac5f6d66619de8a4e37b23574d1ca107cf.zip
bcachefs: Fix implementation of KEY_TYPE_error
When force-removing a device, we were silently dropping extents that we no longer had pointers for - we should have been switching them to KEY_TYPE_error, so that reads for data that was lost return errors. This patch adds the logic for switching a key to KEY_TYPE_error to bch2_bkey_drop_ptr(), and improves the logic somewhat. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/io.c')
0 files changed, 0 insertions, 0 deletions