diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-10-23 18:14:35 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-10-23 18:14:35 -0400 |
commit | 4aa7c6346be395bdf776f82bbb2e3e2bc60bdd2b (patch) | |
tree | a2135754a04370e7fcf7b867b0f4fbeaa58b3521 /include/linux/fs.h | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) |
vfs: add i_op->dentry_open()
Add a new inode operation i_op->dentry_open(). This is for stacked filesystems
that want to return a struct file from a different filesystem.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index a957d4366c24..5cf7f6759679 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1528,6 +1528,9 @@ struct inode_operations { | |||
1528 | umode_t create_mode, int *opened); | 1528 | umode_t create_mode, int *opened); |
1529 | int (*tmpfile) (struct inode *, struct dentry *, umode_t); | 1529 | int (*tmpfile) (struct inode *, struct dentry *, umode_t); |
1530 | int (*set_acl)(struct inode *, struct posix_acl *, int); | 1530 | int (*set_acl)(struct inode *, struct posix_acl *, int); |
1531 | |||
1532 | /* WARNING: probably going away soon, do not use! */ | ||
1533 | int (*dentry_open)(struct dentry *, struct file *, const struct cred *); | ||
1531 | } ____cacheline_aligned; | 1534 | } ____cacheline_aligned; |
1532 | 1535 | ||
1533 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, | 1536 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, |
@@ -2040,6 +2043,7 @@ extern struct file *file_open_name(struct filename *, int, umode_t); | |||
2040 | extern struct file *filp_open(const char *, int, umode_t); | 2043 | extern struct file *filp_open(const char *, int, umode_t); |
2041 | extern struct file *file_open_root(struct dentry *, struct vfsmount *, | 2044 | extern struct file *file_open_root(struct dentry *, struct vfsmount *, |
2042 | const char *, int); | 2045 | const char *, int); |
2046 | extern int vfs_open(const struct path *, struct file *, const struct cred *); | ||
2043 | extern struct file * dentry_open(const struct path *, int, const struct cred *); | 2047 | extern struct file * dentry_open(const struct path *, int, const struct cred *); |
2044 | extern int filp_close(struct file *, fl_owner_t id); | 2048 | extern int filp_close(struct file *, fl_owner_t id); |
2045 | 2049 | ||