fs: unconditionally use atime_needs_update() in pick_link()
authorMateusz Guzik <mjguzik@gmail.com>
Tue, 8 Apr 2025 07:36:41 +0000 (09:36 +0200)
committerChristian Brauner <brauner@kernel.org>
Tue, 8 Apr 2025 09:08:24 +0000 (11:08 +0200)
commite45960c279b098ebc0c2becbd27b3d60732c77ea
treeb36c162bd0402bde9f263947064366e4b8906355
parentc9b380a0171aa6c05659330483bdabc1aabef173
fs: unconditionally use atime_needs_update() in pick_link()

Vast majority of the time the func returns false.

This avoids a branch to determine whether we are in RCU mode.

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/20250408073641.1799151-1-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namei.c