diff options
author | 2025-05-04 16:31:40 -0400 | |
---|---|---|
committer | 2025-05-05 14:19:01 -0400 | |
commit | 50a7b899a0d806f961edadfc3357cb6679826795 (patch) | |
tree | d829e64524726c743c6e84bac4a3f26d173cb01b /scripts/lib/kdoc/kdoc_files.py | |
parent | bcachefs: Improve want_cached_ptr() (diff) | |
download | linux-rng-50a7b899a0d806f961edadfc3357cb6679826795.tar.xz linux-rng-50a7b899a0d806f961edadfc3357cb6679826795.zip |
bcachefs: Ensure proper write alignment
There was a buggy version of bcachefs-tools which picked misaligned
bucket sizes when formatting, and we're also about to do dynamic block
sizes - which will allow picking logical block size or physical block
size of the device per-write, allowing for better compression ratios at
the cost of slightly worse write performance (i.e. forcing the device to
do RMW or extra buffering).
To account for this, tweak bch2_alloc_sectors_start() to properly align
open_buckets to the blocksize of the write we're about to do.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions