summaryrefslogtreecommitdiff
path: root/c_src/include/linux/sched/mm.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-01-16 17:00:02 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-16 17:17:23 -0500
commitb5fd066153c40a70a29caa1ea7987723ab687763 (patch)
tree6d43a8b0a90d549a54c65565ac96c92b3e84b594 /c_src/include/linux/sched/mm.h
parent06ff8b55b70fda44d91b31b5511fafd1680a8934 (diff)
Move c_src dirs back to toplevel
We just wanted c sourcefiles out of the top level, not c source directories. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/include/linux/sched/mm.h')
-rw-r--r--c_src/include/linux/sched/mm.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/c_src/include/linux/sched/mm.h b/c_src/include/linux/sched/mm.h
deleted file mode 100644
index 03feda7a..00000000
--- a/c_src/include/linux/sched/mm.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef _LINUX_SCHED_MM_H
-#define _LINUX_SCHED_MM_H
-
-#define PF_MEMALLOC 0x00000800 /* Allocating memory */
-#define PF_MEMALLOC_NOFS 0x00040000 /* All allocation requests will inherit GFP_NOFS */
-
-static inline unsigned int memalloc_nofs_save(void)
-{
- unsigned int flags = current->flags & PF_MEMALLOC_NOFS;
- current->flags |= PF_MEMALLOC_NOFS;
- return flags;
-}
-
-static inline void memalloc_nofs_restore(unsigned int flags)
-{
- current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags;
-}
-
-static inline unsigned int memalloc_noreclaim_save(void)
-{
- unsigned int flags = current->flags & PF_MEMALLOC;
- current->flags |= PF_MEMALLOC;
- return flags;
-}
-
-static inline void memalloc_noreclaim_restore(unsigned int flags)
-{
- current->flags = (current->flags & ~PF_MEMALLOC) | flags;
-}
-
-#endif /* _LINUX_SCHED_MM_H */