diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 8a81fcbb0074..a0653e560c26 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1654,7 +1654,6 @@ struct inode_operations { | |||
1654 | int (*set_acl)(struct inode *, struct posix_acl *, int); | 1654 | int (*set_acl)(struct inode *, struct posix_acl *, int); |
1655 | 1655 | ||
1656 | /* WARNING: probably going away soon, do not use! */ | 1656 | /* WARNING: probably going away soon, do not use! */ |
1657 | int (*dentry_open)(struct dentry *, struct file *, const struct cred *); | ||
1658 | } ____cacheline_aligned; | 1657 | } ____cacheline_aligned; |
1659 | 1658 | ||
1660 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, | 1659 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, |
@@ -2213,7 +2212,6 @@ extern struct file *file_open_name(struct filename *, int, umode_t); | |||
2213 | extern struct file *filp_open(const char *, int, umode_t); | 2212 | extern struct file *filp_open(const char *, int, umode_t); |
2214 | extern struct file *file_open_root(struct dentry *, struct vfsmount *, | 2213 | extern struct file *file_open_root(struct dentry *, struct vfsmount *, |
2215 | const char *, int); | 2214 | const char *, int); |
2216 | extern int vfs_open(const struct path *, struct file *, const struct cred *); | ||
2217 | extern struct file * dentry_open(const struct path *, int, const struct cred *); | 2215 | extern struct file * dentry_open(const struct path *, int, const struct cred *); |
2218 | extern int filp_close(struct file *, fl_owner_t id); | 2216 | extern int filp_close(struct file *, fl_owner_t id); |
2219 | 2217 | ||
@@ -2530,6 +2528,8 @@ extern struct file * open_exec(const char *); | |||
2530 | extern int is_subdir(struct dentry *, struct dentry *); | 2528 | extern int is_subdir(struct dentry *, struct dentry *); |
2531 | extern int path_is_under(struct path *, struct path *); | 2529 | extern int path_is_under(struct path *, struct path *); |
2532 | 2530 | ||
2531 | extern char *file_path(struct file *, char *, int); | ||
2532 | |||
2533 | #include <linux/err.h> | 2533 | #include <linux/err.h> |
2534 | 2534 | ||
2535 | /* needed for stackable file system support */ | 2535 | /* needed for stackable file system support */ |
@@ -2581,7 +2581,12 @@ extern struct inode *new_inode_pseudo(struct super_block *sb); | |||
2581 | extern struct inode *new_inode(struct super_block *sb); | 2581 | extern struct inode *new_inode(struct super_block *sb); |
2582 | extern void free_inode_nonrcu(struct inode *inode); | 2582 | extern void free_inode_nonrcu(struct inode *inode); |
2583 | extern int should_remove_suid(struct dentry *); | 2583 | extern int should_remove_suid(struct dentry *); |
2584 | extern int file_remove_suid(struct file *); | 2584 | extern int file_remove_privs(struct file *); |
2585 | extern int dentry_needs_remove_privs(struct dentry *dentry); | ||
2586 | static inline int file_needs_remove_privs(struct file *file) | ||
2587 | { | ||
2588 | return dentry_needs_remove_privs(file->f_path.dentry); | ||
2589 | } | ||
2585 | 2590 | ||
2586 | extern void __insert_inode_hash(struct inode *, unsigned long hashval); | 2591 | extern void __insert_inode_hash(struct inode *, unsigned long hashval); |
2587 | static inline void insert_inode_hash(struct inode *inode) | 2592 | static inline void insert_inode_hash(struct inode *inode) |