Lines Matching refs:current
180 if (unlikely(current->flags & in current_gfp_context()
186 if (current->flags & PF_MEMALLOC_NOIO) in current_gfp_context()
188 else if (current->flags & PF_MEMALLOC_NOFS) in current_gfp_context()
191 if (current->flags & PF_MEMALLOC_NOCMA) in current_gfp_context()
223 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save()
224 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
238 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
254 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save()
255 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
269 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
274 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save()
275 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
281 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
287 unsigned int flags = current->flags & PF_MEMALLOC_NOCMA; in memalloc_nocma_save()
289 current->flags |= PF_MEMALLOC_NOCMA; in memalloc_nocma_save()
295 current->flags = (current->flags & ~PF_MEMALLOC_NOCMA) | flags; in memalloc_nocma_restore()
321 WARN_ON_ONCE(current->active_memcg); in memalloc_use_memcg()
322 current->active_memcg = memcg; in memalloc_use_memcg()
333 current->active_memcg = NULL; in memalloc_unuse_memcg()
365 if (current->mm != mm) in membarrier_mm_sync_core_before_usermode()