summaryrefslogtreecommitdiff
path: root/fs/bcachefs/btree_update_leaf.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-01-07 22:55:42 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-01-07 22:55:42 -0500
commit44aba34548e1cc6d0affb2c0af02c33c884b5706 (patch)
tree96bdf2b0e72fa4b832320c8729bf541a3e14afc0 /fs/bcachefs/btree_update_leaf.c
parent0fc4378a90017ccd2476f15617845112dbec8755 (diff)
bcachefs: Fix rereplicate when we already have a cached pointerbcachefs-data_update_fix
When we need to add more replicas to an extent, it might be the case that we already have a replica on every device, but some of them are cached. This patch fixes a bug where we'd spin on that extent because the write path fails to find a device we can allocate from: we allow allocating from devices that already have cached replicas on them, and change bch2_data_update_index_update() to drop the cached replica if needed. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_update_leaf.c')
0 files changed, 0 insertions, 0 deletions