bcachefs: Don't rely on implicit unsigned -> signed integer conversion
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 31 Jul 2024 00:33:25 +0000 (20:33 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 7 Aug 2024 12:31:10 +0000 (08:31 -0400)
commit7442b5cdf259e2fb112560904b7002ce48d15578
treed4ad9b1f07561570c9b0f92cec4bdc7bf84c8137
parentff9bf4b34104955017822e9bc42aeeb526ee2a80
bcachefs: Don't rely on implicit unsigned -> signed integer conversion

implicit integer conversion is a fertile source of bugs, and we really
would rather not have the min()/max() macros doing it implicitly.
bcachefs appears to be the only place in the kernel where this happens,
so let's fix it.

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