bcachefs: Journal space calculation fix
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 31 May 2021 04:13:39 +0000 (00:13 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:05 +0000 (17:09 -0400)
commitd7fc453bdb012d5bc021e693896989fd5973823f
treeb6fbed2c5acb3a1cfc2a3e78306d621e4ec49292
parent649d9a4dfc834230b55c4ae34b60067d1d54c4d1
bcachefs: Journal space calculation fix

When devices have different bucket sizes, we may accumulate a journal
write that doesn't fit on some of our devices - previously, we'd
underflow when calculating space on that device and then everything
would get weird.

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