aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2022-12-30 09:56:46 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2023-01-16 18:11:58 +0000
commit3aa335d00ac860565d106eb47e931206641cd653 (patch)
tree183ea82023ac009562510eefc6b00b4ac83a2da1
parentc0c1c599c0ca7e8a15509503991f8cd97c292bea (diff)
downloadsrc-3aa335d00ac860565d106eb47e931206641cd653.tar.gz
src-3aa335d00ac860565d106eb47e931206641cd653.zip
linuxkpi: Add `gfp_mask` field to `struct shrink_control`
bz@ asked if the KBI breakage is a concern here. My answer was that this is the first time in the DRM drivers in Linux 5.13 (the version I'm working on) that this structure is initialized (as a variable local to the function in this case), so it shouldn't be a problem for the DRM drivers. However, I can't speak for other drivers maintained outside of the src tree. Reviewed by: emaste, manu Approved by: emaste, manu Differential Revision: https://reviews.freebsd.org/D37913
-rw-r--r--sys/compat/linuxkpi/common/include/linux/shrinker.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/shrinker.h b/sys/compat/linuxkpi/common/include/linux/shrinker.h
index 05f702e62fd5..39ea35f0a862 100644
--- a/sys/compat/linuxkpi/common/include/linux/shrinker.h
+++ b/sys/compat/linuxkpi/common/include/linux/shrinker.h
@@ -29,8 +29,10 @@
#define _LINUXKPI_LINUX_SHRINKER_H_
#include <sys/queue.h>
+#include <linux/gfp.h>
struct shrink_control {
+ gfp_t gfp_mask;
unsigned long nr_to_scan;
unsigned long nr_scanned;
};