mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-08 00:00:12 +03:00
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
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:
parent
a1e870abb7
commit
1c551b0fbf
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user