Lines Matching refs:flags

117 			  unsigned long flags);
154 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument
156 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
164 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context()
166 flags &= ~__GFP_FS; in current_gfp_context()
168 return flags; in current_gfp_context()
196 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local
197 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
198 return flags; in memalloc_noio_save()
209 static inline void memalloc_noio_restore(unsigned int flags) in memalloc_noio_restore() argument
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() local
228 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
229 return flags; in memalloc_nofs_save()
240 static inline void memalloc_nofs_restore(unsigned int flags) in memalloc_nofs_restore() argument
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() local
248 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
249 return flags; in memalloc_noreclaim_save()
252 static inline void memalloc_noreclaim_restore(unsigned int flags) in memalloc_noreclaim_restore() argument
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() local
262 current->flags |= PF_MEMALLOC_NOCMA; in memalloc_nocma_save()
263 return flags; in memalloc_nocma_save()
266 static inline void memalloc_nocma_restore(unsigned int flags) in memalloc_nocma_restore() argument
268 current->flags = (current->flags & ~PF_MEMALLOC_NOCMA) | flags; in memalloc_nocma_restore()
276 static inline void memalloc_nocma_restore(unsigned int flags) in memalloc_nocma_restore() argument