This would correspond to GFP_RECLAIM in the kernel - but we don't
distinguish between different types of reclaim here.
This solves a deadlock in the btree node memory allocation path - we
allocate with the btree node cache lock held but without GFP_KERNEL set.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
#define GFP_ATOMIC 0
#define GFP_NOFS 0
#define GFP_NOIO 0
#define GFP_ATOMIC 0
#define GFP_NOFS 0
#define GFP_NOIO 0
struct sysinfo info;
s64 want_shrink;
struct sysinfo info;
s64 want_shrink;
+ if (!(gfp_mask & GFP_KERNEL))
+ return;
+
/* Fast out if there are no shrinkers to run. */
if (list_empty(&shrinker_list))
return;
/* Fast out if there are no shrinkers to run. */
if (list_empty(&shrinker_list))
return;