[PATCH 0/4] Runtime constants series

Linus Torvalds torvalds at linux-foundation.org
Tue Jul 9 08:52:34 PDT 2024


This is also available in the (possibly still to be rebased) git tree at

  git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git runtime-constants

for people who just prefer to do a 'git fetch' and look at things
locally. 

Four patches to make the dentry cache lookup use the new runtime
constants feature rather than load the hash table address and size
dynamically:

 vfs: dcache: move hashlen_hash() from callers into d_hash()
 runtime constants: add default dummy infrastructure
 runtime constants: add x86 architecture support
 arm64: add 'runtime constant' support

with the diffstat being

 arch/arm64/include/asm/runtime-const.h | 88 ++++++++++++++++++++++++++++++++++
 arch/arm64/kernel/vmlinux.lds.S        |  3 ++
 arch/x86/include/asm/runtime-const.h   | 61 +++++++++++++++++++++++
 arch/x86/kernel/vmlinux.lds.S          |  3 ++
 fs/dcache.c                            | 17 +++++--
 include/asm-generic/Kbuild             |  1 +
 include/asm-generic/runtime-const.h    | 15 ++++++
 include/asm-generic/vmlinux.lds.h      |  8 ++++
 8 files changed, 192 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm64/include/asm/runtime-const.h
 create mode 100644 arch/x86/include/asm/runtime-const.h
 create mode 100644 include/asm-generic/runtime-const.h

Thanks,

           Linus



More information about the linux-arm-kernel mailing list