History

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.

Miklos Szeredi committed 12 years ago

Commit 4aa7c631 parent f1140405 files · +40 −5Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/fs.h+4−0
@@ -1528,6 +1528,9 @@ struct inode_operations { · 1527 unmodified lines
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
1533ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector,1536ssize_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); · 506 unmodified lines
2040extern struct file *filp_open(const char *, int, umode_t);2043extern struct file *filp_open(const char *, int, umode_t);
2041extern struct file *file_open_root(struct dentry *, struct vfsmount *,2044extern struct file *file_open_root(struct dentry *, struct vfsmount *,
2042 const char *, int);2045 const char *, int);
2046extern int vfs_open(const struct path *, struct file *, const struct cred *);
2043extern struct file * dentry_open(const struct path *, int, const struct cred *);2047extern struct file * dentry_open(const struct path *, int, const struct cred *);
2044extern int filp_close(struct file *, fl_owner_t id);2048extern int filp_close(struct file *, fl_owner_t id);
2045 2049