Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 2026 21:43:15 +0000
From:      Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 1feb0effa08a - stable/15 - linuxkpi: Define `GFP_KERNEL_ACCOUNT` flag
Message-ID:  <69f27b73.46dfd.edac96@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/src/commit/?id=1feb0effa08a64799c8a7788bae02a3a32796017

commit 1feb0effa08a64799c8a7788bae02a3a32796017
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2026-04-22 16:28:52 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2026-04-29 21:04:28 +0000

    linuxkpi: Define `GFP_KERNEL_ACCOUNT` flag
    
    This flag combines `GFP_KERNEL` and `__GFP_ACCOUNT`. The latter is also
    defined in this commit. It is defined as a no-op flag as it is not
    implemented.
    
    The DRM generic code started to use it in Linux 6.12.x.
    
    Reviewed by:    bz
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit af01ffbfb1c0a0104d3a4c7dd1342ed7c81c6c54)
---
 sys/compat/linuxkpi/common/include/linux/gfp.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/gfp.h b/sys/compat/linuxkpi/common/include/linux/gfp.h
index e8380e326eda..b94cbada0435 100644
--- a/sys/compat/linuxkpi/common/include/linux/gfp.h
+++ b/sys/compat/linuxkpi/common/include/linux/gfp.h
@@ -55,6 +55,7 @@
 #define	__GFP_IO	0
 #define	__GFP_NO_KSWAPD	0
 #define	__GFP_KSWAPD_RECLAIM	0
+#define	__GFP_ACCOUNT	0
 #define	__GFP_WAIT	M_WAITOK
 #define	__GFP_DMA32	(1U << 24) /* LinuxKPI only */
 #define	__GFP_NORETRY	(1U << 25) /* LinuxKPI only */
@@ -66,6 +67,7 @@
 #define	GFP_NOWAIT	M_NOWAIT
 #define	GFP_ATOMIC	(M_NOWAIT | M_USE_RESERVE)
 #define	GFP_KERNEL	M_WAITOK
+#define	GFP_KERNEL_ACCOUNT	(GFP_KERNEL | __GFP_ACCOUNT)
 #define	GFP_USER	M_WAITOK
 #define	GFP_HIGHUSER	M_WAITOK
 #define	GFP_HIGHUSER_MOVABLE	M_WAITOK


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69f27b73.46dfd.edac96>