aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-06-22 04:40:19 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-14 08:33:39 -0400
commit30d904947459cca2beb69e0110716f5248b31f2a (patch)
tree024e2a913266377d234147b14b7eb37017546173 /include/linux/fs.h
parenta4a3bdd778715999ddfeefdc52ab76254580fa76 (diff)
kill struct opendata
Just pass struct file *. Methods are happier that way... There's no need to return struct file * from finish_open() now, so let it return int. Next: saner prototypes for parts in namei.c Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 33bda922988a..1dcc75c95763 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -427,7 +427,6 @@ struct kstatfs;
427struct vm_area_struct; 427struct vm_area_struct;
428struct vfsmount; 428struct vfsmount;
429struct cred; 429struct cred;
430struct opendata;
431 430
432extern void __init inode_init(void); 431extern void __init inode_init(void);
433extern void __init inode_init_early(void); 432extern void __init inode_init_early(void);
@@ -1695,7 +1694,7 @@ struct inode_operations {
1695 u64 len); 1694 u64 len);
1696 int (*update_time)(struct inode *, struct timespec *, int); 1695 int (*update_time)(struct inode *, struct timespec *, int);
1697 int (*atomic_open)(struct inode *, struct dentry *, 1696 int (*atomic_open)(struct inode *, struct dentry *,
1698 struct opendata *, unsigned open_flag, 1697 struct file *, unsigned open_flag,
1699 umode_t create_mode, int *opened); 1698 umode_t create_mode, int *opened);
1700} ____cacheline_aligned; 1699} ____cacheline_aligned;
1701 1700
@@ -2069,10 +2068,10 @@ enum {
2069 FILE_CREATED = 1, 2068 FILE_CREATED = 1,
2070 FILE_OPENED = 2 2069 FILE_OPENED = 2
2071}; 2070};
2072extern struct file *finish_open(struct opendata *od, struct dentry *dentry, 2071extern int finish_open(struct file *file, struct dentry *dentry,
2073 int (*open)(struct inode *, struct file *), 2072 int (*open)(struct inode *, struct file *),
2074 int *opened); 2073 int *opened);
2075extern void finish_no_open(struct opendata *od, struct dentry *dentry); 2074extern void finish_no_open(struct file *file, struct dentry *dentry);
2076 2075
2077/* fs/ioctl.c */ 2076/* fs/ioctl.c */
2078 2077