Skip to content

[rlc-10] dcache: export shrink_dentry_list() and add new helper d_dispose_if_u…#897

Open
roxanan1996 wants to merge 1 commit intorlc-10/6.12.0-124.35.1.el10_1from
{rnicolescu}/rlc-10/6.12.0-124.35.1.el10_1
Open

[rlc-10] dcache: export shrink_dentry_list() and add new helper d_dispose_if_u…#897
roxanan1996 wants to merge 1 commit intorlc-10/6.12.0-124.35.1.el10_1from
{rnicolescu}/rlc-10/6.12.0-124.35.1.el10_1

Conversation

@roxanan1996
Copy link
Contributor

https://ciqinc.atlassian.net/browse/SECO-468

Description

Customer request to backport this to rlc-10.
The commit is a clean cherry pick and it has no impact on the current kernel.
The main impact is that it exposes a function that is probably used in an external kernel module by the customer.

Note

It was introduced upstream in preparation for a change to invalidate expired dentries in fuse. https://lore.kernel.org/all/20250916135310.51177-1-luis@igalia.com/
But we are not picking the rest of the changes since that is not of interest.
This commit has barely any impact since the rest of the changes from this submission are not cherry picked.

Build

> grep -E -B 5 -A 5 '\[TIMER\]|^Starting Build' /home/rnicolescu/ciq/kernels/rlc-10/kernel-build-after.log
  CLEAN   scripts/mod
  CLEAN   scripts/selinux/genheaders
  CLEAN   scripts/selinux/mdp
  CLEAN   scripts
  CLEAN   include/config include/generated arch/x86/include/generated .config .config.old .version Module.symvers certs/signing_key.pem certs/x509.genkey
[TIMER]{MRPROPER}: 9s
x86_64 architecture detected, copying config
'configs/kernel-x86_64-rhel.config' -> '.config'
Setting Local Version for build
CONFIG_LOCALVERSION="-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc"
Making olddefconfig
--
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
Starting Build
  GEN     arch/x86/include/generated/asm/orc_hash.h
  WRAP    arch/x86/include/generated/uapi/asm/errno.h
  WRAP    arch/x86/include/generated/uapi/asm/bpf_perf_event.h
  WRAP    arch/x86/include/generated/uapi/asm/fcntl.h
  WRAP    arch/x86/include/generated/uapi/asm/ioctl.h
--
  BTF [M] net/hsr/hsr.ko
  BTF [M] net/qrtr/qrtr-mhi.ko
  LD [M]  virt/lib/irqbypass.ko
  BTF [M] net/qrtr/qrtr.ko
  BTF [M] virt/lib/irqbypass.ko
[TIMER]{BUILD}: 2160s
Making Modules
  SYMLINK /lib/modules/6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+/build
  INSTALL /lib/modules/6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+/modules.order
  INSTALL /lib/modules/6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+/modules.builtin
  INSTALL /lib/modules/6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+/modules.builtin.modinfo
--
  STRIP   /lib/modules/6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+/kernel/virt/lib/irqbypass.ko
  SIGN    /lib/modules/6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+/kernel/virt/lib/irqbypass.ko
  SIGN    /lib/modules/6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+/kernel/net/qrtr/qrtr.ko
  SIGN    /lib/modules/6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+/kernel/net/qrtr/qrtr-mhi.ko
  DEPMOD  /lib/modules/6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+
[TIMER]{MODULES}: 10s
Making Install
  INSTALL /boot
[TIMER]{INSTALL}: 14s
Checking kABI
kABI check passed
Setting Default Kernel to /boot/vmlinuz-6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+ and Index to 2
The default is /boot/loader/entries/2adeea37d6d145f09ba612fce6891624-6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+.conf with index 2 and kernel /boot/vmlinuz-6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+
The default is /boot/loader/entries/2adeea37d6d145f09ba612fce6891624-6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+.conf with index 2 and kernel /boot/vmlinuz-6.12.0-rnicolescu_rlc-10_6.12.0-124.35.1.el10_1-72ea64896adc+
Generating grub configuration file ...
Adding boot menu entry for UEFI Firmware Settings ...
done
Hopefully Grub2.0 took everything ... rebooting after time metrices
[TIMER]{MRPROPER}: 9s
[TIMER]{BUILD}: 2160s
[TIMER]{MODULES}: 10s
[TIMER]{INSTALL}: 14s
[TIMER]{TOTAL} 2197s
Rebooting in 10 seconds

Kselftests

> /home/rnicolescu/ciq/kernel-tools/kselftest-diff.sh /home/rnicolescu/ciq/kernels/rlc-10
/home/rnicolescu/ciq/kernels/rlc-10/kselftest-before.log
483
/home/rnicolescu/ciq/kernels/rlc-10/kselftest-after.log
481
Before: /home/rnicolescu/ciq/kernels/rlc-10/kselftest-before.log
After: /home/rnicolescu/ciq/kernels/rlc-10/kselftest-after.log
Diff:
-ok 100 selftests: net: test_vxlan_nolocalbypass.sh # SKIP
-ok 101 selftests: net: test_bridge_backup_port.sh # SKIP
+ok 100 selftests: net: test_vxlan_nolocalbypass.sh
+ok 101 selftests: net: test_bridge_backup_port.sh
-ok 14 selftests: net: bind_wildcard
-ok 2 selftests: syscall_user_dispatch: sud_benchmark
-ok 44 selftests: net: fib_nexthops.sh # SKIP
+ok 44 selftests: net: fib_nexthops.sh
-ok 46 selftests: net: altnames.sh # SKIP
+ok 46 selftests: net: altnames.sh
-ok 7 selftests: timers: raw_skew # SKIP
+ok 7 selftests: timers: raw_skew
-ok 98 selftests: net: test_vxlan_mdb.sh # SKIP
+ok 98 selftests: net: test_vxlan_mdb.sh

…nused()

jira SECO-468
commit-author Luis Henriques <luis@igalia.com>
commit 395b955

Add and export a new helper d_dispose_if_unused() which is simply a wrapper
around to_shrink_list(), to add an entry to a dispose list if it's not used
anymore.

Also export shrink_dentry_list() to kill all dentries in a dispose list.

	Suggested-by: Miklos Szeredi <miklos@szeredi.hu>
	Signed-off-by: Luis Henriques <luis@igalia.com>
	Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
(cherry picked from commit 395b955)
	Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
@roxanan1996 roxanan1996 requested a review from a team February 18, 2026 21:09
@PlaidCat PlaidCat removed the request for review from a team February 18, 2026 22:35
Copy link
Collaborator

@PlaidCat PlaidCat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@PlaidCat PlaidCat requested a review from a team February 18, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments