Lines Matching refs:current
165 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
205 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save()
206 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
220 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
236 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save()
237 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
251 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
256 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save()
257 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
263 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
269 unsigned int flags = current->flags & PF_MEMALLOC_NOCMA; in memalloc_nocma_save()
271 current->flags |= PF_MEMALLOC_NOCMA; in memalloc_nocma_save()
277 current->flags = (current->flags & ~PF_MEMALLOC_NOCMA) | flags; in memalloc_nocma_restore()
312 old = current->active_memcg; in set_active_memcg()
313 current->active_memcg = memcg; in set_active_memcg()
349 if (current->mm != mm) in membarrier_mm_sync_core_before_usermode()