mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
fs: use fput_close() in path_openat()
This bumps failing open rate by 1.7% on Sapphire Rapids by avoiding one atomic. Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Link: https://lore.kernel.org/r/20250305123644.554845-5-mjguzik@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
a914bd93f3
commit
606623de50
|
|
@ -3995,7 +3995,7 @@ static struct file *path_openat(struct nameidata *nd,
|
|||
WARN_ON(1);
|
||||
error = -EINVAL;
|
||||
}
|
||||
fput(file);
|
||||
fput_close(file);
|
||||
if (error == -EOPENSTALE) {
|
||||
if (flags & LOOKUP_RCU)
|
||||
error = -ECHILD;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user