Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

don't duplicate vfs_open() in kernel_file_open()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/20250615003216.GB3011112@ZenIV
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Al Viro and committed by
Christian Brauner
88b1de54 d209f6e1

+1 -4
+1 -4
fs/open.c
··· 1204 1204 if (IS_ERR(f)) 1205 1205 return f; 1206 1206 1207 - f->f_path = *path; 1208 - error = do_dentry_open(f, NULL); 1207 + error = vfs_open(path, f); 1209 1208 if (error) { 1210 1209 fput(f); 1211 1210 return ERR_PTR(error); 1212 1211 } 1213 - 1214 - fsnotify_open(f); 1215 1212 return f; 1216 1213 } 1217 1214 EXPORT_SYMBOL_GPL(kernel_file_open);