]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix additional misalignment in journal space calculations
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 7 Jul 2025 17:54:31 +0000 (13:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 7 Jul 2025 22:19:30 +0000 (18:19 -0400)
commit74f3931a1bfea5822e8953a15c8ebc587dc6b4bc
tree1ca45754c979333c3f6e98b06c04d7ba62865c95
parent7de3c8b4077e052a6f7880a9ae0f42342c49631b
bcachefs: Fix additional misalignment in journal space calculations

Additional fix on top of

f54b2a80d0df bcachefs: Fix misaligned bucket check in journal space calculations

Make sure that when we calculate space for the next entry it's not
misaligned: we need to round_down() to filesystem block size in multiple
places (next entry size calculation as well as total space available).

Reported-by: Ondřej Kraus <neverberlerfellerer@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_reclaim.c