summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2026-01-05 07:10:27 -0800
committerChristian Brauner <brauner@kernel.org>2026-01-06 22:48:15 +0100
commita6b9f5b2f04bd7809cd72c5d33af944758c00ab1 (patch)
treee9ecdf95473e6fb9e9e0ec02832551315192301b /rust/alloc/collections/git@git.tavy.me:linux.git
parent729d015ab230d1d6debd69744c6e0fb70c16a779 (diff)
fs/namei: Remove redundant DCACHE_MANAGED_DENTRY check in __follow_mount_rcu
The check for DCACHE_MANAGED_DENTRY at the start of __follow_mount_rcu() is redundant because the only caller (handle_mounts) already verifies d_managed(dentry) before calling this function, so, dentry in __follow_mount_rcu() has always DCACHE_MANAGED_DENTRY set. This early-out optimization never fires in practice - but it is marking as likely(). This was detected with branch profiling, which shows 100% misprediction in this likely. Remove the whole if clause instead of removing the likely, given we know for sure that dentry is not DCACHE_MANAGED_DENTRY. Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20260105-dcache-v1-1-f0d904b4a7c2@debian.org Acked-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions