summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/reflink.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-02-07 02:15:15 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:08:35 +0200
commit1f49dafcd3191de1db9b6105983696b5bc7aedad (patch)
tree50c3a618e3ae2dffbef272a5cc5b72812851d060 /fs/bcachefs/reflink.h
parentbcachefs: Make BTREE_ITER_IS_EXTENTS private to iter code (diff)
downloadlinux-1f49dafcd3191de1db9b6105983696b5bc7aedad.tar.xz
linux-1f49dafcd3191de1db9b6105983696b5bc7aedad.zip
bcachefs: Fix bch2_ptr_swab for indirect extents
bch2_ptr_swab was never updated when the code for generic keys with pointers was added - it assumed the entire val was only used for pointers. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/reflink.h')
-rw-r--r--fs/bcachefs/reflink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/reflink.h b/fs/bcachefs/reflink.h
index ac23b855858c..5445c1cf0797 100644
--- a/fs/bcachefs/reflink.h
+++ b/fs/bcachefs/reflink.h
@@ -22,6 +22,7 @@ void bch2_reflink_v_to_text(struct printbuf *, struct bch_fs *,
#define bch2_bkey_ops_reflink_v (struct bkey_ops) { \
.key_invalid = bch2_reflink_v_invalid, \
.val_to_text = bch2_reflink_v_to_text, \
+ .swab = bch2_ptr_swab, \
}
s64 bch2_remap_range(struct bch_fs *, struct bpos, struct bpos,