18828ebd6SEmmanuel Vadot /*- 28828ebd6SEmmanuel Vadot * Copyright (c) 2021 Beckhoff Automation GmbH & Co. KG 38828ebd6SEmmanuel Vadot * 48828ebd6SEmmanuel Vadot * Redistribution and use in source and binary forms, with or without 58828ebd6SEmmanuel Vadot * modification, are permitted provided that the following conditions 68828ebd6SEmmanuel Vadot * are met: 78828ebd6SEmmanuel Vadot * 1. Redistributions of source code must retain the above copyright 88828ebd6SEmmanuel Vadot * notice, this list of conditions and the following disclaimer. 98828ebd6SEmmanuel Vadot * 2. Redistributions in binary form must reproduce the above copyright 108828ebd6SEmmanuel Vadot * notice, this list of conditions and the following disclaimer in the 118828ebd6SEmmanuel Vadot * documentation and/or other materials provided with the distribution. 128828ebd6SEmmanuel Vadot * 138828ebd6SEmmanuel Vadot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 148828ebd6SEmmanuel Vadot * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 158828ebd6SEmmanuel Vadot * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 168828ebd6SEmmanuel Vadot * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 178828ebd6SEmmanuel Vadot * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 188828ebd6SEmmanuel Vadot * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 198828ebd6SEmmanuel Vadot * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 208828ebd6SEmmanuel Vadot * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 218828ebd6SEmmanuel Vadot * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 228828ebd6SEmmanuel Vadot * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 238828ebd6SEmmanuel Vadot * SUCH DAMAGE. 248828ebd6SEmmanuel Vadot * 258828ebd6SEmmanuel Vadot */ 268828ebd6SEmmanuel Vadot 278828ebd6SEmmanuel Vadot #ifndef _LINUXKPI_LINUX_SCHED_MM_H_ 288828ebd6SEmmanuel Vadot #define _LINUXKPI_LINUX_SCHED_MM_H_ 298828ebd6SEmmanuel Vadot 308828ebd6SEmmanuel Vadot #include <linux/gfp.h> 318828ebd6SEmmanuel Vadot 328828ebd6SEmmanuel Vadot #define fs_reclaim_acquire(x) do { \ 338828ebd6SEmmanuel Vadot } while (0) 348828ebd6SEmmanuel Vadot #define fs_reclaim_release(x) do { \ 358828ebd6SEmmanuel Vadot } while (0) 368828ebd6SEmmanuel Vadot #define memalloc_nofs_save(x) 0 378828ebd6SEmmanuel Vadot #define memalloc_nofs_restore(x) do { \ 388828ebd6SEmmanuel Vadot } while (0) 39*cf8f3922SJean-Sébastien Pédron #define memalloc_noreclaim_save(x) 0 40*cf8f3922SJean-Sébastien Pédron #define memalloc_noreclaim_restore(x) do { \ 41*cf8f3922SJean-Sébastien Pédron } while (0) 428828ebd6SEmmanuel Vadot 438828ebd6SEmmanuel Vadot #endif /* _BSD_LKPI_LINUX_SCHED_MM_H_ */ 44