aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2023-01-02 20:59:17 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2023-02-16 11:55:11 +0000
commitd703686ed948e1cd6f0d49e2540b5c1bb3d5da5a (patch)
treeaab3f81e1d19f153eea8a75b356d08f0cb5471ee
parent14b9db7ff85488fa5f85e8be2bdbe4e5ec0b3079 (diff)
downloadsrc-d703686ed948e1cd6f0d49e2540b5c1bb3d5da5a.tar.gz
src-d703686ed948e1cd6f0d49e2540b5c1bb3d5da5a.zip
linuxkpi: Add `memalloc_noreclaim_save()` and `memalloc_noreclaim_restore()`
They are no-ops. Reviewed by: emaste, manu Approved by: emaste, manu Differential Revision: https://reviews.freebsd.org/D37933 (cherry picked from commit cf8f392260bf8e9b4e088f26f81ddb96bd97e91c)
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sched/mm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/sched/mm.h b/sys/compat/linuxkpi/common/include/linux/sched/mm.h
index 613473e142a9..c26d99378974 100644
--- a/sys/compat/linuxkpi/common/include/linux/sched/mm.h
+++ b/sys/compat/linuxkpi/common/include/linux/sched/mm.h
@@ -36,5 +36,8 @@
#define memalloc_nofs_save(x) 0
#define memalloc_nofs_restore(x) do { \
} while (0)
+#define memalloc_noreclaim_save(x) 0
+#define memalloc_noreclaim_restore(x) do { \
+ } while (0)
#endif /* _BSD_LKPI_LINUX_SCHED_MM_H_ */