diff options
| author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-02-06 20:15:15 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:35 -0400 |
| commit | 1f49dafcd3191de1db9b6105983696b5bc7aedad (patch) | |
| tree | 50c3a618e3ae2dffbef272a5cc5b72812851d060 /fs/bcachefs/reflink.h | |
| parent | bcachefs: Make BTREE_ITER_IS_EXTENTS private to iter code (diff) | |
| download | linux-1f49dafcd3191de1db9b6105983696b5bc7aedad.tar.gz 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.h | 1 |
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, |
