diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2020-12-22 18:15:01 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2021-01-12 11:31:00 +0000 |
commit | 2c95fb753fb20e82c16356537204d8583e125be0 (patch) | |
tree | 3905baf593a97cf41590ff94c754ae12f45e1c71 /sys/conf/files | |
parent | 105a37cac76b971f7a94409fbdc4f508a7e97fa0 (diff) | |
download | src-2c95fb753fb20e82c16356537204d8583e125be0.tar.gz src-2c95fb753fb20e82c16356537204d8583e125be0.zip |
linuxkpi: Add shrinker support
A driver can register a shrinker that will be called when the kernel
wants to free some memory.
Add support for that in linuxkpi and call the registered shrinkers
when the lowmem event is triggered.
Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D27728
Diffstat (limited to 'sys/conf/files')
-rw-r--r-- | sys/conf/files | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/conf/files b/sys/conf/files index 860fae3c8273..1765e217fcf6 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -4576,6 +4576,8 @@ compat/linuxkpi/common/src/linux_schedule.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_shmemfs.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" +compat/linuxkpi/common/src/linux_shrinker.c optional compat_linuxkpi \ + compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_slab.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_usb.c optional compat_linuxkpi usb \ |