Lines Matching full:current
95 /* Remove the current tasks stale references to the old mm_struct on exit() */
97 /* Remove the current tasks stale references to the old mm_struct on exec() */
158 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
217 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save()
218 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
232 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
248 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save()
249 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
263 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
268 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save()
269 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
275 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
280 unsigned int flags = current->flags & PF_MEMALLOC_PIN; in memalloc_pin_save()
282 current->flags |= PF_MEMALLOC_PIN; in memalloc_pin_save()
288 current->flags = (current->flags & ~PF_MEMALLOC_PIN) | flags; in memalloc_pin_restore()
313 old = current->active_memcg; in set_active_memcg()
314 current->active_memcg = memcg; in set_active_memcg()
350 if (current->mm != mm) in membarrier_mm_sync_core_before_usermode()