diff options
Diffstat (limited to 'fs/ext3')
| -rw-r--r-- | fs/ext3/acl.c | 8 | ||||
| -rw-r--r-- | fs/ext3/acl.h | 4 | ||||
| -rw-r--r-- | fs/ext3/file.c | 2 | ||||
| -rw-r--r-- | fs/ext3/namei.c | 4 |
4 files changed, 6 insertions, 12 deletions
diff --git a/fs/ext3/acl.c b/fs/ext3/acl.c index e167bae37ef0..c9b0df376b5f 100644 --- a/fs/ext3/acl.c +++ b/fs/ext3/acl.c | |||
| @@ -238,7 +238,7 @@ ext3_set_acl(handle_t *handle, struct inode *inode, int type, | |||
| 238 | return error; | 238 | return error; |
| 239 | } | 239 | } |
| 240 | 240 | ||
| 241 | static int | 241 | int |
| 242 | ext3_check_acl(struct inode *inode, int mask) | 242 | ext3_check_acl(struct inode *inode, int mask) |
| 243 | { | 243 | { |
| 244 | struct posix_acl *acl = ext3_get_acl(inode, ACL_TYPE_ACCESS); | 244 | struct posix_acl *acl = ext3_get_acl(inode, ACL_TYPE_ACCESS); |
| @@ -254,12 +254,6 @@ ext3_check_acl(struct inode *inode, int mask) | |||
| 254 | return -EAGAIN; | 254 | return -EAGAIN; |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | int | ||
| 258 | ext3_permission(struct inode *inode, int mask) | ||
| 259 | { | ||
| 260 | return generic_permission(inode, mask, ext3_check_acl); | ||
| 261 | } | ||
| 262 | |||
| 263 | /* | 257 | /* |
| 264 | * Initialize the ACLs of a new inode. Called from ext3_new_inode. | 258 | * Initialize the ACLs of a new inode. Called from ext3_new_inode. |
| 265 | * | 259 | * |
diff --git a/fs/ext3/acl.h b/fs/ext3/acl.h index 07d15a3a5969..597334626de9 100644 --- a/fs/ext3/acl.h +++ b/fs/ext3/acl.h | |||
| @@ -54,13 +54,13 @@ static inline int ext3_acl_count(size_t size) | |||
| 54 | #ifdef CONFIG_EXT3_FS_POSIX_ACL | 54 | #ifdef CONFIG_EXT3_FS_POSIX_ACL |
| 55 | 55 | ||
| 56 | /* acl.c */ | 56 | /* acl.c */ |
| 57 | extern int ext3_permission (struct inode *, int); | 57 | extern int ext3_check_acl (struct inode *, int); |
| 58 | extern int ext3_acl_chmod (struct inode *); | 58 | extern int ext3_acl_chmod (struct inode *); |
| 59 | extern int ext3_init_acl (handle_t *, struct inode *, struct inode *); | 59 | extern int ext3_init_acl (handle_t *, struct inode *, struct inode *); |
| 60 | 60 | ||
| 61 | #else /* CONFIG_EXT3_FS_POSIX_ACL */ | 61 | #else /* CONFIG_EXT3_FS_POSIX_ACL */ |
| 62 | #include <linux/sched.h> | 62 | #include <linux/sched.h> |
| 63 | #define ext3_permission NULL | 63 | #define ext3_check_acl NULL |
| 64 | 64 | ||
| 65 | static inline int | 65 | static inline int |
| 66 | ext3_acl_chmod(struct inode *inode) | 66 | ext3_acl_chmod(struct inode *inode) |
diff --git a/fs/ext3/file.c b/fs/ext3/file.c index 5b49704b231b..299253214789 100644 --- a/fs/ext3/file.c +++ b/fs/ext3/file.c | |||
| @@ -137,7 +137,7 @@ const struct inode_operations ext3_file_inode_operations = { | |||
| 137 | .listxattr = ext3_listxattr, | 137 | .listxattr = ext3_listxattr, |
| 138 | .removexattr = generic_removexattr, | 138 | .removexattr = generic_removexattr, |
| 139 | #endif | 139 | #endif |
| 140 | .permission = ext3_permission, | 140 | .check_acl = ext3_check_acl, |
| 141 | .fiemap = ext3_fiemap, | 141 | .fiemap = ext3_fiemap, |
| 142 | }; | 142 | }; |
| 143 | 143 | ||
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index 6ff7b9730234..aad6400c9b77 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c | |||
| @@ -2445,7 +2445,7 @@ const struct inode_operations ext3_dir_inode_operations = { | |||
| 2445 | .listxattr = ext3_listxattr, | 2445 | .listxattr = ext3_listxattr, |
| 2446 | .removexattr = generic_removexattr, | 2446 | .removexattr = generic_removexattr, |
| 2447 | #endif | 2447 | #endif |
| 2448 | .permission = ext3_permission, | 2448 | .check_acl = ext3_check_acl, |
| 2449 | }; | 2449 | }; |
| 2450 | 2450 | ||
| 2451 | const struct inode_operations ext3_special_inode_operations = { | 2451 | const struct inode_operations ext3_special_inode_operations = { |
| @@ -2456,5 +2456,5 @@ const struct inode_operations ext3_special_inode_operations = { | |||
| 2456 | .listxattr = ext3_listxattr, | 2456 | .listxattr = ext3_listxattr, |
| 2457 | .removexattr = generic_removexattr, | 2457 | .removexattr = generic_removexattr, |
| 2458 | #endif | 2458 | #endif |
| 2459 | .permission = ext3_permission, | 2459 | .check_acl = ext3_check_acl, |
| 2460 | }; | 2460 | }; |
