diff options
author | 2023-11-03 09:09:37 -0400 | |
---|---|---|
committer | 2023-11-04 22:19:13 -0400 | |
commit | 0996c72a0f300bfedf8df52a8e437435494fc204 (patch) | |
tree | 34398564080985b3f0d1047c450e429ec04b5f43 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bcachefs: allow writeback to fill bio completely (diff) | |
download | linux-rng-0996c72a0f300bfedf8df52a8e437435494fc204.tar.xz linux-rng-0996c72a0f300bfedf8df52a8e437435494fc204.zip |
bcachefs: byte order swap bch_alloc_v4.fragmentation_lru field
A simple test to populate a filesystem on one CPU architecture and
fsck on an arch of the opposite byte order produces errors related
to the fragmentation LRU. This occurs because the 64-bit
fragmentation_lru field is not byte-order swapped when reads detect
that the on-disk/bset key values were written in opposite byte-order
of the current CPU.
Update the bch2_alloc_v4 swab callback to handle fragmentation_lru
as is done for other multi-byte fields. This doesn't affect existing
filesystems when accessed by CPUs of the same endianness because the
->swab() callback is only called when the bset flags indicate an
endianness mismatch between the CPU and on-disk data.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions