git: 96a5e759b5b5 - stable/15 - linuxkpi: Define `__GFP_THISNODE`

From: Jean-Sébastien Pédron <dumbbell_at_FreeBSD.org>
Date: Wed, 29 Apr 2026 21:42:45 UTC
The branch stable/15 has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/src/commit/?id=96a5e759b5b5ca84c8d4c06fb5582e0087c749dc

commit 96a5e759b5b5ca84c8d4c06fb5582e0087c749dc
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2026-04-11 10:23:27 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2026-04-29 21:03:10 +0000

    linuxkpi: Define `__GFP_THISNODE`
    
    It is used to force the NUMA node to allocate from. This flag is
    unimplemented for now because we don't have an implementation of
    `alloc_pages_node()` yet.
    
    The DRM TTM code started to use this flag in Linux 6.12.
    
    Reviewed by:    bz
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 8f95998393f42f368fe22abd9a25c7fa4304e02a)
---
 sys/compat/linuxkpi/common/include/linux/gfp.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/gfp.h b/sys/compat/linuxkpi/common/include/linux/gfp.h
index af7cdb422fcb..e8380e326eda 100644
--- a/sys/compat/linuxkpi/common/include/linux/gfp.h
+++ b/sys/compat/linuxkpi/common/include/linux/gfp.h
@@ -58,7 +58,8 @@
 #define	__GFP_WAIT	M_WAITOK
 #define	__GFP_DMA32	(1U << 24) /* LinuxKPI only */
 #define	__GFP_NORETRY	(1U << 25) /* LinuxKPI only */
-#define	__GFP_BITS_SHIFT 26
+#define	__GFP_THISNODE	(1U << 26) /* Unimplemented */
+#define	__GFP_BITS_SHIFT	27
 #define	__GFP_BITS_MASK	((1 << __GFP_BITS_SHIFT) - 1)
 #define	__GFP_NOFAIL	M_WAITOK