fix shrinker_free()
Some checks failed
build / bcachefs-tools-deb (ubuntu-24.04) (push) Has been cancelled
build / bcachefs-tools-rpm (push) Has been cancelled
build / bcachefs-tools-msrv (push) Has been cancelled
Nix Flake actions / nix-matrix (push) Has been cancelled
Nix Flake actions / ${{ matrix.name }} (${{ matrix.system }}) (push) Has been cancelled

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-09-06 23:28:17 -04:00
parent a1e870abb7
commit 1c551b0fbf

View File

@ -15,6 +15,9 @@ static DEFINE_MUTEX(shrinker_lock);
void shrinker_free(struct shrinker *s)
{
if (!s)
return;
if (s->list.next) {
mutex_lock(&shrinker_lock);
list_del(&s->list);