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
15281528 umode_t create_mode, int *opened);
15291529 int (*tmpfile) (struct inode *, struct dentry *, umode_t);
15301530 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 *);
15311534 } ____cacheline_aligned;
15321535
15331536 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); · 506 unmodified lines
20402043 extern struct file *filp_open(const char *, int, umode_t);
20412044 extern struct file *file_open_root(struct dentry *, struct vfsmount *,
20422045 const char *, int);
2046+extern int vfs_open(const struct path *, struct file *, const struct cred *);
20432047 extern struct file * dentry_open(const struct path *, int, const struct cred *);
20442048 extern int filp_close(struct file *, fl_owner_t id);
20452049