do_dentry_open(): kill inode argument

should've been done as soon as overlayfs stopped messing with fake
paths...

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 0f4a2ceb af58dc1f

+4 -4
+4 -4
fs/open.c
··· 902 902 } 903 903 904 904 static int do_dentry_open(struct file *f, 905 - struct inode *inode, 906 905 int (*open)(struct inode *, struct file *)) 907 906 { 908 907 static const struct file_operations empty_fops = {}; 908 + struct inode *inode = f->f_path.dentry->d_inode; 909 909 int error; 910 910 911 911 path_get(&f->f_path); ··· 1047 1047 BUG_ON(file->f_mode & FMODE_OPENED); /* once it's opened, it's opened */ 1048 1048 1049 1049 file->f_path.dentry = dentry; 1050 - return do_dentry_open(file, d_backing_inode(dentry), open); 1050 + return do_dentry_open(file, open); 1051 1051 } 1052 1052 EXPORT_SYMBOL(finish_open); 1053 1053 ··· 1086 1086 int vfs_open(const struct path *path, struct file *file) 1087 1087 { 1088 1088 file->f_path = *path; 1089 - return do_dentry_open(file, d_backing_inode(path->dentry), NULL); 1089 + return do_dentry_open(file, NULL); 1090 1090 } 1091 1091 1092 1092 struct file *dentry_open(const struct path *path, int flags, ··· 1174 1174 return f; 1175 1175 1176 1176 f->f_path = *path; 1177 - error = do_dentry_open(f, d_inode(path->dentry), NULL); 1177 + error = do_dentry_open(f, NULL); 1178 1178 if (error) { 1179 1179 fput(f); 1180 1180 f = ERR_PTR(error);