Lines Matching refs:flags
173 #define arch_get_mmap_end(addr, len, flags) (TASK_SIZE) argument
186 unsigned long flags, vm_flags_t vm_flags);
190 unsigned long flags, vm_flags_t);
194 unsigned long pgoff, unsigned long flags);
201 unsigned long flags,
207 unsigned long flags, vm_flags_t vm_flags);
211 unsigned long flags, vm_flags_t vm_flags);
250 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument
252 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
260 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context()
262 flags &= ~__GFP_FS; in current_gfp_context()
265 flags &= ~__GFP_MOVABLE; in current_gfp_context()
267 return flags; in current_gfp_context()
330 static inline unsigned memalloc_flags_save(unsigned flags) in memalloc_flags_save() argument
332 unsigned oldflags = ~current->flags & flags; in memalloc_flags_save()
333 current->flags |= flags; in memalloc_flags_save()
337 static inline void memalloc_flags_restore(unsigned flags) in memalloc_flags_restore() argument
339 current->flags &= ~flags; in memalloc_flags_restore()
367 static inline void memalloc_noio_restore(unsigned int flags) in memalloc_noio_restore() argument
369 memalloc_flags_restore(flags); in memalloc_noio_restore()
397 static inline void memalloc_nofs_restore(unsigned int flags) in memalloc_nofs_restore() argument
399 memalloc_flags_restore(flags); in memalloc_nofs_restore()
438 static inline void memalloc_noreclaim_restore(unsigned int flags) in memalloc_noreclaim_restore() argument
440 memalloc_flags_restore(flags); in memalloc_noreclaim_restore()
466 static inline void memalloc_pin_restore(unsigned int flags) in memalloc_pin_restore() argument
468 memalloc_flags_restore(flags); in memalloc_pin_restore()