bcachefs: Improve reflink repair code
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 19 Feb 2022 08:06:28 +0000 (03:06 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:25 +0000 (17:09 -0400)
commitb0551285e11edbf86bebe6df0396adf84e032f5c
tree6380aea4314fb251816a5b7d4a38e318e99d3451
parent78c8fe20be12d0e4b6427d9149fd1eb9a69e2290
bcachefs: Improve reflink repair code

When a reflink pointer points to a missing indirect extent, we replace
it with an error key. Instead of replacing the entire reflink pointer
with an error key, this patch replaces only the missing range with an
error key.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/buckets.c