aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/btree_trans_commit.c
diff options
context:
space:
mode:
authorBrian Foster <[email protected]>2023-11-03 13:09:38 +0000
committerKent Overstreet <[email protected]>2023-11-05 02:19:13 +0000
commit7cb2a7895d94db2979c29e4a20f33b5557c702d5 (patch)
treeeaa04267abb6b23145f658e0906854f748c7c91a /fs/bcachefs/btree_trans_commit.c
parentbcachefs: byte order swap bch_alloc_v4.fragmentation_lru field (diff)
downloadkernel-7cb2a7895d94db2979c29e4a20f33b5557c702d5.tar.gz
kernel-7cb2a7895d94db2979c29e4a20f33b5557c702d5.zip
bcachefs: use swab40 for bch_backpointer.bucket_offset bitfield
The bucket_offset field of bch_backpointer is a 40-bit bitfield, but the bch2_backpointer_swab() helper uses swab32. This leads to inconsistency when an on-disk fs is accessed from an opposite endian machine. As it turns out, we already have an internal swab40() helper that is used from the bch_alloc_v4 swab callback. Lift it into the backpointers header file and use it consistently in both places. Signed-off-by: Brian Foster <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions