diff options
| author | 2024-11-20 12:20:34 +0100 | |
|---|---|---|
| committer | 2024-12-22 11:29:50 +0100 | |
| commit | ea382199071931d19aac5f688b543e07360e2b64 (patch) | |
| tree | 375c9ad796a10c2e2abd39b3a766196f354a050b /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | fiemap: use kernel-doc includes in fiemap docbook (diff) | |
vfs: support caching symlink lengths in inodes
When utilized it dodges strlen() in vfs_readlink(), giving about 1.5%
speed up when issuing readlink on /initrd.img on ext4.
Filesystems opt in by calling inode_set_cached_link() when creating an
inode.
The size is stored in a new union utilizing the same space as i_devices,
thus avoiding growing the struct or taking up any more space.
Churn-wise the current readlink_copy() helper is patched to accept the
size instead of calculating it.
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20241120112037.822078-2-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
