]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Delete backpointers check in try_alloc_bucket()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 15 Nov 2024 02:28:40 +0000 (21:28 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:18 +0000 (01:36 -0500)
commit7815809fca37b0e6287de349f88b2d5d6eadd82d
tree16c2153eb4068267dafd7fa5bca7976d10cdd2ef
parentac745efb429226434d9a8c5a1496dc0373efa359
bcachefs: Delete backpointers check in try_alloc_bucket()

try_alloc_bucket() has a "safety" check, which avoids allocating a
bucket if there's any backpointers present.

But backpointers are not the source of truth for live data in a bucket,
the bucket sector counts are; this check was fairly useless, and we're
also deferring backpointers checks from fsck to runtime in the near
future.

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