···352352 }353353 mutex_unlock(&v9inode->v_mutex);354354 /* Since we are opening a file, assign the open fid to the file */355355- err = finish_open(file, dentry, generic_file_open, opened);355355+ err = finish_open(file, dentry, generic_file_open);356356 if (err)357357 goto err_clunk_old_fid;358358 file->private_data = ofid;
···14391439{14401440 int err;1441144114421442- err = finish_open(file, dentry, do_open, opened);14421442+ err = finish_open(file, dentry, do_open);14431443 if (err)14441444 goto out;14451445 if (S_ISREG(file->f_path.dentry->d_inode->i_mode))
+1-2
fs/open.c
···843843 * Returns zero on success or -errno if the open failed.844844 */845845int finish_open(struct file *file, struct dentry *dentry,846846- int (*open)(struct inode *, struct file *),847847- int *opened)846846+ int (*open)(struct inode *, struct file *))848847{849848 BUG_ON(file->f_mode & FMODE_OPENED); /* once it's opened, it's opened */850849
+1-2
include/linux/fs.h
···24412441 FILE_OPENED = 224422442};24432443extern int finish_open(struct file *file, struct dentry *dentry,24442444- int (*open)(struct inode *, struct file *),24452445- int *opened);24442444+ int (*open)(struct inode *, struct file *));24462445extern int finish_no_open(struct file *file, struct dentry *dentry);2447244624482447/* fs/ioctl.c */