Commit e648448c authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Fix missing memalloc_nofs_restore()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent f526d26d
......@@ -329,9 +329,9 @@ static unsigned long bch2_btree_cache_scan(struct shrinker *shrink,
clear_btree_node_accessed(b);
}
memalloc_nofs_restore(flags);
mutex_unlock(&bc->lock);
out:
memalloc_nofs_restore(flags);
return (unsigned long) freed * btree_pages(c);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment