Lines Matching refs:flags
140 unsigned long flags);
178 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument
180 if (unlikely(current->flags & in current_gfp_context()
186 if (current->flags & PF_MEMALLOC_NOIO) in current_gfp_context()
187 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context()
188 else if (current->flags & PF_MEMALLOC_NOFS) in current_gfp_context()
189 flags &= ~__GFP_FS; in current_gfp_context()
191 if (current->flags & PF_MEMALLOC_NOCMA) in current_gfp_context()
192 flags &= ~__GFP_MOVABLE; in current_gfp_context()
195 return flags; in current_gfp_context()
223 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local
224 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
225 return flags; in memalloc_noio_save()
236 static inline void memalloc_noio_restore(unsigned int flags) in memalloc_noio_restore() argument
238 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
254 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save() local
255 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
256 return flags; in memalloc_nofs_save()
267 static inline void memalloc_nofs_restore(unsigned int flags) in memalloc_nofs_restore() argument
269 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
274 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save() local
275 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
276 return flags; in memalloc_noreclaim_save()
279 static inline void memalloc_noreclaim_restore(unsigned int flags) in memalloc_noreclaim_restore() argument
281 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
287 unsigned int flags = current->flags & PF_MEMALLOC_NOCMA; in memalloc_nocma_save() local
289 current->flags |= PF_MEMALLOC_NOCMA; in memalloc_nocma_save()
290 return flags; in memalloc_nocma_save()
293 static inline void memalloc_nocma_restore(unsigned int flags) in memalloc_nocma_restore() argument
295 current->flags = (current->flags & ~PF_MEMALLOC_NOCMA) | flags; in memalloc_nocma_restore()
303 static inline void memalloc_nocma_restore(unsigned int flags) in memalloc_nocma_restore() argument