Skip to content

Commit 606623d

Browse files
mjguzikbrauner
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent a914bd9 commit 606623d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3995,7 +3995,7 @@ static struct file *path_openat(struct nameidata *nd,
39953995
WARN_ON(1);
39963996
error = -EINVAL;
39973997
}
3998-
fput(file);
3998+
fput_close(file);
39993999
if (error == -EOPENSTALE) {
40004000
if (flags & LOOKUP_RCU)
40014001
error = -ECHILD;

0 commit comments

Comments
 (0)