mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 13:43:21 -04:00
bcachefs: Fix incorrect gfp check
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
d211b408ab
commit
47a5649a0a
@@ -310,7 +310,7 @@ static unsigned long bch2_btree_cache_scan(struct shrinker *shrink,
|
||||
if (freed >= nr)
|
||||
goto out;
|
||||
|
||||
if (sc->gfp_mask & __GFP_IO)
|
||||
if (sc->gfp_mask & __GFP_FS)
|
||||
mutex_lock(&bc->lock);
|
||||
else if (!mutex_trylock(&bc->lock))
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user