]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs: cache first and last mount
authorChristian Brauner <brauner@kernel.org>
Sun, 15 Dec 2024 20:17:06 +0000 (21:17 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 9 Jan 2025 15:58:54 +0000 (16:58 +0100)
commit2ce23285d704f6a8d90207ae8f115f5db93d3541
tree080356af151f07f9a31e568b77802cc6a87b5973
parentc7bb042031b4890b1c5e733dd1ef6484565d174a
fs: cache first and last mount

Speed up listmount() by caching the first and last node making retrieval
of the first and last mount of each mount namespace O(1).

Link: https://lore.kernel.org/r/20241215-vfs-6-14-mount-work-v1-2-fd55922c4af8@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/mount.h
fs/namespace.c