diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index a6a625be13fc..7d719c1a18e3 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -136,7 +136,7 @@ extern int dir_notify_enable; | |||
136 | /* | 136 | /* |
137 | * Superblock flags that can be altered by MS_REMOUNT | 137 | * Superblock flags that can be altered by MS_REMOUNT |
138 | */ | 138 | */ |
139 | #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK) | 139 | #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION) |
140 | 140 | ||
141 | /* | 141 | /* |
142 | * Old magic mount flag and mask | 142 | * Old magic mount flag and mask |
@@ -1593,7 +1593,6 @@ extern int get_sb_pseudo(struct file_system_type *, char *, | |||
1593 | struct vfsmount *mnt); | 1593 | struct vfsmount *mnt); |
1594 | extern int simple_set_mnt(struct vfsmount *mnt, struct super_block *sb); | 1594 | extern int simple_set_mnt(struct vfsmount *mnt, struct super_block *sb); |
1595 | int __put_super_and_need_restart(struct super_block *sb); | 1595 | int __put_super_and_need_restart(struct super_block *sb); |
1596 | void unnamed_dev_init(void); | ||
1597 | 1596 | ||
1598 | /* Alas, no aliases. Too much hassle with bringing module.h everywhere */ | 1597 | /* Alas, no aliases. Too much hassle with bringing module.h everywhere */ |
1599 | #define fops_get(fops) \ | 1598 | #define fops_get(fops) \ |
@@ -1852,6 +1851,11 @@ extern int inode_permission(struct inode *, int); | |||
1852 | extern int generic_permission(struct inode *, int, | 1851 | extern int generic_permission(struct inode *, int, |
1853 | int (*check_acl)(struct inode *, int)); | 1852 | int (*check_acl)(struct inode *, int)); |
1854 | 1853 | ||
1854 | static inline bool execute_ok(struct inode *inode) | ||
1855 | { | ||
1856 | return (inode->i_mode & S_IXUGO) || S_ISDIR(inode->i_mode); | ||
1857 | } | ||
1858 | |||
1855 | extern int get_write_access(struct inode *); | 1859 | extern int get_write_access(struct inode *); |
1856 | extern int deny_write_access(struct file *); | 1860 | extern int deny_write_access(struct file *); |
1857 | static inline void put_write_access(struct inode * inode) | 1861 | static inline void put_write_access(struct inode * inode) |