Lines Matching refs:current
156 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
196 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save()
197 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
211 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
227 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save()
228 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
242 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
247 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save()
248 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
254 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
260 unsigned int flags = current->flags & PF_MEMALLOC_NOCMA; in memalloc_nocma_save()
262 current->flags |= PF_MEMALLOC_NOCMA; in memalloc_nocma_save()
268 current->flags = (current->flags & ~PF_MEMALLOC_NOCMA) | flags; in memalloc_nocma_restore()
303 old = current->active_memcg; in set_active_memcg()
304 current->active_memcg = memcg; in set_active_memcg()
340 if (current->mm != mm) in membarrier_mm_sync_core_before_usermode()