Lines Matching refs:flags
125 unsigned long flags);
164 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument
166 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
174 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context()
176 flags &= ~__GFP_FS; in current_gfp_context()
179 flags &= ~__GFP_MOVABLE; in current_gfp_context()
181 return flags; in current_gfp_context()
225 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local
226 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
227 return flags; in memalloc_noio_save()
238 static inline void memalloc_noio_restore(unsigned int flags) in memalloc_noio_restore() argument
240 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
256 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save() local
257 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
258 return flags; in memalloc_nofs_save()
269 static inline void memalloc_nofs_restore(unsigned int flags) in memalloc_nofs_restore() argument
271 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
276 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save() local
277 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
278 return flags; in memalloc_noreclaim_save()
281 static inline void memalloc_noreclaim_restore(unsigned int flags) in memalloc_noreclaim_restore() argument
283 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
288 unsigned int flags = current->flags & PF_MEMALLOC_PIN; in memalloc_pin_save() local
290 current->flags |= PF_MEMALLOC_PIN; in memalloc_pin_save()
291 return flags; in memalloc_pin_save()
294 static inline void memalloc_pin_restore(unsigned int flags) in memalloc_pin_restore() argument
296 current->flags = (current->flags & ~PF_MEMALLOC_PIN) | flags; in memalloc_pin_restore()