bcachefs: Fix reflink path for snapshots
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 29 Nov 2021 21:36:50 +0000 (16:36 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:18 +0000 (17:09 -0400)
commitf449bedb068447d3e9b1d64a41852b2aaca36fda
tree3aaefc1e0f13a45ada2b95ac4bb2a945be4e206b
parentfc6c01e2ea5292a740ddedb5b2b3805e8ecb3f4b
bcachefs: Fix reflink path for snapshots

make_extent_indirect() was missing the
BTREE_UPDATE_INTERNAL_SNAPSHOT_NODE - it's updating the extent in the
original snapshot, not the curret one.

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