aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h11
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
1660ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, 1659ssize_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);
2213extern struct file *filp_open(const char *, int, umode_t); 2212extern struct file *filp_open(const char *, int, umode_t);
2214extern struct file *file_open_root(struct dentry *, struct vfsmount *, 2213extern struct file *file_open_root(struct dentry *, struct vfsmount *,
2215 const char *, int); 2214 const char *, int);
2216extern int vfs_open(const struct path *, struct file *, const struct cred *);
2217extern struct file * dentry_open(const struct path *, int, const struct cred *); 2215extern struct file * dentry_open(const struct path *, int, const struct cred *);
2218extern int filp_close(struct file *, fl_owner_t id); 2216extern int filp_close(struct file *, fl_owner_t id);
2219 2217
@@ -2530,6 +2528,8 @@ extern struct file * open_exec(const char *);
2530extern int is_subdir(struct dentry *, struct dentry *); 2528extern int is_subdir(struct dentry *, struct dentry *);
2531extern int path_is_under(struct path *, struct path *); 2529extern int path_is_under(struct path *, struct path *);
2532 2530
2531extern 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);
2581extern struct inode *new_inode(struct super_block *sb); 2581extern struct inode *new_inode(struct super_block *sb);
2582extern void free_inode_nonrcu(struct inode *inode); 2582extern void free_inode_nonrcu(struct inode *inode);
2583extern int should_remove_suid(struct dentry *); 2583extern int should_remove_suid(struct dentry *);
2584extern int file_remove_suid(struct file *); 2584extern int file_remove_privs(struct file *);
2585extern int dentry_needs_remove_privs(struct dentry *dentry);
2586static inline int file_needs_remove_privs(struct file *file)
2587{
2588 return dentry_needs_remove_privs(file->f_path.dentry);
2589}
2585 2590
2586extern void __insert_inode_hash(struct inode *, unsigned long hashval); 2591extern void __insert_inode_hash(struct inode *, unsigned long hashval);
2587static inline void insert_inode_hash(struct inode *inode) 2592static inline void insert_inode_hash(struct inode *inode)