Lines Matching refs:current
205 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
290 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save()
291 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
305 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
321 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save()
322 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
336 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
341 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save()
342 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
348 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
353 unsigned int flags = current->flags & PF_MEMALLOC_PIN; in memalloc_pin_save()
355 current->flags |= PF_MEMALLOC_PIN; in memalloc_pin_save()
361 current->flags = (current->flags & ~PF_MEMALLOC_PIN) | flags; in memalloc_pin_restore()
386 old = current->active_memcg; in set_active_memcg()
387 current->active_memcg = memcg; in set_active_memcg()
423 if (current->mm != mm) in membarrier_mm_sync_core_before_usermode()