···11551155 * kernel_file_open - open a file for kernel internal use11561156 * @path: path of the file to open11571157 * @flags: open flags11581158- * @inode: the inode11591158 * @cred: credentials for open11601159 *11611160 * Open a file for use by in-kernel consumers. The file is not accounted···11641165 * Return: Opened file on success, an error pointer on failure.11651166 */11661167struct file *kernel_file_open(const struct path *path, int flags,11671167- struct inode *inode, const struct cred *cred)11681168+ const struct cred *cred)11681169{11691170 struct file *f;11701171 int error;···11741175 return f;1175117611761177 f->f_path = *path;11771177- error = do_dentry_open(f, inode, NULL);11781178+ error = do_dentry_open(f, d_inode(path->dentry), NULL);11781179 if (error) {11791180 fput(f);11801181 f = ERR_PTR(error);
+1-1
fs/overlayfs/util.c
···13761376 * If this inode was not yet opened, the verity info hasn't been13771377 * loaded yet, so we need to do that here to force it into memory.13781378 */13791379- filp = kernel_file_open(datapath, O_RDONLY, inode, current_cred());13791379+ filp = kernel_file_open(datapath, O_RDONLY, current_cred());13801380 if (IS_ERR(filp))13811381 return PTR_ERR(filp);13821382 fput(filp);