]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix misaligned bucket check in journal space calculations
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 28 May 2025 02:06:04 +0000 (22:06 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 30 May 2025 05:21:12 +0000 (01:21 -0400)
commitf54b2a80d0df06f8c13cbd102ca9dc2c6a578c5c
treedb033b18bcc7f6705fad32f4fb2c274bc97563e2
parent813825d24135aa3109cf7746ce11f1ec2ab901fd
bcachefs: Fix misaligned bucket check in journal space calculations

Fix an assertion pop in the tiering_misaligned test: rounding down to
bucket size at the end of the journal space calculations leaves
cur_entry_sectors == 0, which is incorrect with !cur_entry_err.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_reclaim.c