diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2012-05-14 13:06:13 +0200 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-06-23 23:16:14 -0600 |
commit | ecb318c6e087711cced0e146b922bd32684c081d (patch) | |
tree | fe52167cdcc4e3bd237db7842d174fa76d9846a3 /include | |
parent | e686461f661859d27c4eea1bc07e2d998886f635 (diff) |
UBUNTU: ubuntu: overlayfs -- vfs: add i_op->open()
Add a new inode operation i_op->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')
-rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 17fd887c798..05d046f75e9 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1693,6 +1693,8 @@ struct inode_operations { int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, u64 len); int (*update_time)(struct inode *, struct timespec *, int); + struct file *(*open) (struct dentry *, struct file *, + const struct cred *); } ____cacheline_aligned; struct seq_file; @@ -2057,6 +2059,7 @@ extern long do_sys_open(int dfd, const char __user *filename, int flags, extern struct file *filp_open(const char *, int, umode_t); extern struct file *file_open_root(struct dentry *, struct vfsmount *, const char *, int); +extern struct file *vfs_open(struct path *, struct file *, const struct cred *); extern struct file * dentry_open(struct dentry *, struct vfsmount *, int, const struct cred *); extern int filp_close(struct file *, fl_owner_t id); |