Lines Matching refs:current
158 if (unlikely(current->flags & PF_MEMALLOC_NOIO)) in current_gfp_context()
160 else if (unlikely(current->flags & PF_MEMALLOC_NOFS)) in current_gfp_context()
190 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save()
191 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
205 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
221 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save()
222 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
236 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
241 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save()
242 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
248 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
264 WARN_ON_ONCE(current->active_memcg); in memalloc_use_memcg()
265 current->active_memcg = memcg; in memalloc_use_memcg()
276 current->active_memcg = NULL; in memalloc_unuse_memcg()