Lines Matching refs:flags

115 			  unsigned long flags);
152 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument
158 if (unlikely(current->flags & PF_MEMALLOC_NOIO)) in current_gfp_context()
159 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context()
160 else if (unlikely(current->flags & PF_MEMALLOC_NOFS)) in current_gfp_context()
161 flags &= ~__GFP_FS; in current_gfp_context()
162 return flags; in current_gfp_context()
190 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local
191 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
192 return flags; in memalloc_noio_save()
203 static inline void memalloc_noio_restore(unsigned int flags) in memalloc_noio_restore() argument
205 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
221 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save() local
222 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
223 return flags; in memalloc_nofs_save()
234 static inline void memalloc_nofs_restore(unsigned int flags) in memalloc_nofs_restore() argument
236 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
241 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save() local
242 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
243 return flags; in memalloc_noreclaim_save()
246 static inline void memalloc_noreclaim_restore(unsigned int flags) in memalloc_noreclaim_restore() argument
248 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()