On Wed, 6 Sep 2017, Vlastimil Babka wrote: > I think it's wasteful to do a function call for this, inline definition > in header would be better (gfp_pfmemalloc_allowed() is different as it > relies on a rather heavyweight __gfp_pfmemalloc_flags().
Right.