Lines Matching refs:current
237 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
322 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save()
323 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
337 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
353 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save()
354 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
368 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
373 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save()
374 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
380 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
385 unsigned int flags = current->flags & PF_MEMALLOC_PIN; in memalloc_pin_save()
387 current->flags |= PF_MEMALLOC_PIN; in memalloc_pin_save()
393 current->flags = (current->flags & ~PF_MEMALLOC_PIN) | flags; in memalloc_pin_restore()
418 old = current->active_memcg; in set_active_memcg()
419 current->active_memcg = memcg; in set_active_memcg()
455 if (current->mm != mm) in membarrier_mm_sync_core_before_usermode()