PF_MEMALLOC
if (current->flags & PF_MEMALLOC)
WARN_ON(!(current->flags & PF_MEMALLOC));
if (WARN_ON_ONCE(current->flags & PF_MEMALLOC))
unlikely(current->flags & PF_MEMALLOC) &&
if (current->flags & PF_MEMALLOC)
if (WARN_ON_ONCE(current->flags & PF_MEMALLOC))
if (WARN_ON_ONCE((current->flags & (PF_MEMALLOC | PF_KSWAPD)) ==
PF_MEMALLOC))
if (handle->h_sync && !(current->flags & PF_MEMALLOC))
new_pflags |= PF_MEMALLOC | PF_KSWAPD;
if (current->flags & PF_MEMALLOC)
return memalloc_flags_save(PF_MEMALLOC);
current->flags &= ~PF_MEMALLOC;
current_restore_flags(old_flags, PF_MEMALLOC);
WARN_ONCE(current->flags & PF_MEMALLOC,
if (unlikely(current->flags & PF_MEMALLOC))
!(current->flags & PF_MEMALLOC) &&
VM_WARN_ON_ONCE(!(current->flags & PF_MEMALLOC));
if (current->flags & PF_MEMALLOC)
(current->flags & (PF_MEMALLOC | PF_EXITING)))
if (current->flags & PF_MEMALLOC)
if (in_serving_softirq() && (current->flags & PF_MEMALLOC))
if (current->flags & PF_MEMALLOC)
WARN_ON_ONCE(current->flags & PF_MEMALLOC);
if (current->flags & PF_MEMALLOC)
lru_gen_in_fault() && !(current->flags & PF_MEMALLOC))
tsk->flags |= PF_MEMALLOC | PF_KSWAPD;
tsk->flags &= ~(PF_MEMALLOC | PF_KSWAPD);
if (!gfpflags_allow_blocking(gfp_mask) || (current->flags & PF_MEMALLOC))
current_restore_flags(pflags, PF_MEMALLOC);
current->flags |= PF_MEMALLOC;
current->flags |= PF_MEMALLOC;
current->flags |= PF_MEMALLOC;
current_restore_flags(pflags, PF_MEMALLOC);
current->flags |= PF_MEMALLOC;
current_restore_flags(pflags, PF_MEMALLOC);
current->flags |= PF_MEMALLOC;
current_restore_flags(pflags, PF_MEMALLOC);
current->flags |= PF_MEMALLOC;
current_restore_flags(pflags, PF_MEMALLOC);