Lines Matching refs:current
188 if (unlikely(current->flags & PF_MEMALLOC_NOIO)) in current_gfp_context()
190 else if (unlikely(current->flags & PF_MEMALLOC_NOFS)) in current_gfp_context()
220 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save()
221 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
235 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
251 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save()
252 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
266 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
271 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save()
272 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
278 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
294 WARN_ON_ONCE(current->active_memcg); in memalloc_use_memcg()
295 current->active_memcg = memcg; in memalloc_use_memcg()
306 current->active_memcg = NULL; in memalloc_unuse_memcg()
338 if (current->mm != mm) in membarrier_mm_sync_core_before_usermode()