Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2025 16:03:13 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien?= =?utf-8?Q?P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f4ffe677397f - main - linuxkpi: Add `private_data` to `struct shrinker`
Message-ID:  <202501311603.50VG3DdT038533@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dumbbell:

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

commit f4ffe677397f122899dc656c32ba6bd8d0448277
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2024-12-22 18:15:58 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2025-01-31 16:00:47 +0000

    linuxkpi: Add `private_data` to `struct shrinker`
    
    [Why]
    This field is used by the i915 DRM driver in Linux 6.7.
    
    Reviewed by:    manu
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D48748
---
 sys/compat/linuxkpi/common/include/linux/shrinker.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/shrinker.h b/sys/compat/linuxkpi/common/include/linux/shrinker.h
index a865241cc7cb..88cbca2dcf60 100644
--- a/sys/compat/linuxkpi/common/include/linux/shrinker.h
+++ b/sys/compat/linuxkpi/common/include/linux/shrinker.h
@@ -39,6 +39,7 @@ struct shrinker {
 	unsigned long		(*count_objects)(struct shrinker *, struct shrink_control *);
 	unsigned long		(*scan_objects)(struct shrinker *, struct shrink_control *);
 	int			seeks;
+	void *			private_data;
 	long			batch;
 	TAILQ_ENTRY(shrinker)	next;
 };



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501311603.50VG3DdT038533>