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>
This commit is contained in:
Al Viro
2025-06-16 16:18:38 +02:00
committed by Christian Brauner
parent d209f6e122
commit 88b1de5497
+1 -4
View File
@@ -1204,14 +1204,11 @@ struct file *kernel_file_open(const struct path *path, int flags,
if (IS_ERR(f))
return f;
f->f_path = *path;
error = do_dentry_open(f, NULL);
error = vfs_open(path, f);
if (error) {
fput(f);
return ERR_PTR(error);
}
fsnotify_open(f);
return f;
}
EXPORT_SYMBOL_GPL(kernel_file_open);