mirror of https://github.com/torvalds/linux.git
fs: touch predicts in do_dentry_open()
Helps out some of the asm, the routine is still a mess. Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Link: https://patch.msgid.link/20251109125254.1288882-1-mjguzik@gmail.com Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
50b2a4f19b
commit
e41c1f4291
|
|
@ -940,7 +940,7 @@ static int do_dentry_open(struct file *f,
|
||||||
}
|
}
|
||||||
|
|
||||||
error = security_file_open(f);
|
error = security_file_open(f);
|
||||||
if (error)
|
if (unlikely(error))
|
||||||
goto cleanup_all;
|
goto cleanup_all;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -950,11 +950,11 @@ static int do_dentry_open(struct file *f,
|
||||||
* pseudo file, this call will not change the mode.
|
* pseudo file, this call will not change the mode.
|
||||||
*/
|
*/
|
||||||
error = fsnotify_open_perm_and_set_mode(f);
|
error = fsnotify_open_perm_and_set_mode(f);
|
||||||
if (error)
|
if (unlikely(error))
|
||||||
goto cleanup_all;
|
goto cleanup_all;
|
||||||
|
|
||||||
error = break_lease(file_inode(f), f->f_flags);
|
error = break_lease(file_inode(f), f->f_flags);
|
||||||
if (error)
|
if (unlikely(error))
|
||||||
goto cleanup_all;
|
goto cleanup_all;
|
||||||
|
|
||||||
/* normally all 3 are set; ->open() can clear them if needed */
|
/* normally all 3 are set; ->open() can clear them if needed */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue