]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Delete dead code from bch2_discard_one_bucket()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 27 Oct 2024 02:52:06 +0000 (22:52 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:17 +0000 (01:36 -0500)
commitb6269cd0ec0a55f256d6f79a6e70dd7177050150
tree9e8d9c09dff13c957b1f23a8c4d90c69e029d273
parent7d1918b0d86dcf049fac0d548509459e0e0300da
bcachefs: Delete dead code from bch2_discard_one_bucket()

alloc key validation ensures that if a bucket is in need_discard state
the sector counts are all zero - we don't have to check for that.

The NEED_INC_GEN check appears to be dead code, as well: we only see
buckets in the need_discard btree, and it's an error if they aren't in
the need_discard state.

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