Lines Matching refs:flags
172 #define arch_get_mmap_end(addr, len, flags) (TASK_SIZE) argument
187 unsigned long flags);
192 unsigned long flags);
196 unsigned long flags);
235 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument
237 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
245 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context()
247 flags &= ~__GFP_FS; in current_gfp_context()
250 flags &= ~__GFP_MOVABLE; in current_gfp_context()
252 return flags; in current_gfp_context()
322 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local
323 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
324 return flags; in memalloc_noio_save()
335 static inline void memalloc_noio_restore(unsigned int flags) in memalloc_noio_restore() argument
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() local
354 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
355 return flags; in memalloc_nofs_save()
366 static inline void memalloc_nofs_restore(unsigned int flags) in memalloc_nofs_restore() argument
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() local
374 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
375 return flags; in memalloc_noreclaim_save()
378 static inline void memalloc_noreclaim_restore(unsigned int flags) in memalloc_noreclaim_restore() argument
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() local
387 current->flags |= PF_MEMALLOC_PIN; in memalloc_pin_save()
388 return flags; in memalloc_pin_save()
391 static inline void memalloc_pin_restore(unsigned int flags) in memalloc_pin_restore() argument
393 current->flags = (current->flags & ~PF_MEMALLOC_PIN) | flags; in memalloc_pin_restore()