• Home
  • Raw
  • Download

Lines Matching full:flags

125 			  unsigned long flags);
159 * Applies per-task gfp context to the given allocation flags.
163 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument
165 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
173 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context()
175 flags &= ~__GFP_FS; in current_gfp_context()
177 return flags; in current_gfp_context()
198 * point of view. Use memalloc_noio_restore to end the scope with flags
205 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local
206 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
207 return flags; in memalloc_noio_save()
212 * @flags: Flags to restore.
215 * Always make sure that the given flags is the return value from the
218 static inline void memalloc_noio_restore(unsigned int flags) in memalloc_noio_restore() argument
220 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
229 * point of view. Use memalloc_nofs_restore to end the scope with flags
236 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save() local
237 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
238 return flags; in memalloc_nofs_save()
243 * @flags: Flags to restore.
246 * Always make sure that the given flags is the return value from the
249 static inline void memalloc_nofs_restore(unsigned int flags) in memalloc_nofs_restore() argument
251 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
256 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save() local
257 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
258 return flags; in memalloc_noreclaim_save()
261 static inline void memalloc_noreclaim_restore(unsigned int flags) in memalloc_noreclaim_restore() argument
263 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
269 unsigned int flags = current->flags & PF_MEMALLOC_NOCMA; in memalloc_nocma_save() local
271 current->flags |= PF_MEMALLOC_NOCMA; in memalloc_nocma_save()
272 return flags; in memalloc_nocma_save()
275 static inline void memalloc_nocma_restore(unsigned int flags) in memalloc_nocma_restore() argument
277 current->flags = (current->flags & ~PF_MEMALLOC_NOCMA) | flags; in memalloc_nocma_restore()
285 static inline void memalloc_nocma_restore(unsigned int flags) in memalloc_nocma_restore() argument