diff options
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/inode.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 3601f0aebddf..f0bd87371566 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -7339,7 +7339,7 @@ static int btrfs_permission(struct inode *inode, int mask, unsigned int flags) | |||
7339 | return -EROFS; | 7339 | return -EROFS; |
7340 | if ((BTRFS_I(inode)->flags & BTRFS_INODE_READONLY) && (mask & MAY_WRITE)) | 7340 | if ((BTRFS_I(inode)->flags & BTRFS_INODE_READONLY) && (mask & MAY_WRITE)) |
7341 | return -EACCES; | 7341 | return -EACCES; |
7342 | return generic_permission(inode, mask, flags, btrfs_check_acl); | 7342 | return generic_permission(inode, mask, flags); |
7343 | } | 7343 | } |
7344 | 7344 | ||
7345 | static const struct inode_operations btrfs_dir_inode_operations = { | 7345 | static const struct inode_operations btrfs_dir_inode_operations = { |
@@ -7359,10 +7359,12 @@ static const struct inode_operations btrfs_dir_inode_operations = { | |||
7359 | .listxattr = btrfs_listxattr, | 7359 | .listxattr = btrfs_listxattr, |
7360 | .removexattr = btrfs_removexattr, | 7360 | .removexattr = btrfs_removexattr, |
7361 | .permission = btrfs_permission, | 7361 | .permission = btrfs_permission, |
7362 | .check_acl = btrfs_check_acl, | ||
7362 | }; | 7363 | }; |
7363 | static const struct inode_operations btrfs_dir_ro_inode_operations = { | 7364 | static const struct inode_operations btrfs_dir_ro_inode_operations = { |
7364 | .lookup = btrfs_lookup, | 7365 | .lookup = btrfs_lookup, |
7365 | .permission = btrfs_permission, | 7366 | .permission = btrfs_permission, |
7367 | .check_acl = btrfs_check_acl, | ||
7366 | }; | 7368 | }; |
7367 | 7369 | ||
7368 | static const struct file_operations btrfs_dir_file_operations = { | 7370 | static const struct file_operations btrfs_dir_file_operations = { |
@@ -7431,6 +7433,7 @@ static const struct inode_operations btrfs_file_inode_operations = { | |||
7431 | .removexattr = btrfs_removexattr, | 7433 | .removexattr = btrfs_removexattr, |
7432 | .permission = btrfs_permission, | 7434 | .permission = btrfs_permission, |
7433 | .fiemap = btrfs_fiemap, | 7435 | .fiemap = btrfs_fiemap, |
7436 | .check_acl = btrfs_check_acl, | ||
7434 | }; | 7437 | }; |
7435 | static const struct inode_operations btrfs_special_inode_operations = { | 7438 | static const struct inode_operations btrfs_special_inode_operations = { |
7436 | .getattr = btrfs_getattr, | 7439 | .getattr = btrfs_getattr, |
@@ -7440,6 +7443,7 @@ static const struct inode_operations btrfs_special_inode_operations = { | |||
7440 | .getxattr = btrfs_getxattr, | 7443 | .getxattr = btrfs_getxattr, |
7441 | .listxattr = btrfs_listxattr, | 7444 | .listxattr = btrfs_listxattr, |
7442 | .removexattr = btrfs_removexattr, | 7445 | .removexattr = btrfs_removexattr, |
7446 | .check_acl = btrfs_check_acl, | ||
7443 | }; | 7447 | }; |
7444 | static const struct inode_operations btrfs_symlink_inode_operations = { | 7448 | static const struct inode_operations btrfs_symlink_inode_operations = { |
7445 | .readlink = generic_readlink, | 7449 | .readlink = generic_readlink, |
@@ -7451,6 +7455,7 @@ static const struct inode_operations btrfs_symlink_inode_operations = { | |||
7451 | .getxattr = btrfs_getxattr, | 7455 | .getxattr = btrfs_getxattr, |
7452 | .listxattr = btrfs_listxattr, | 7456 | .listxattr = btrfs_listxattr, |
7453 | .removexattr = btrfs_removexattr, | 7457 | .removexattr = btrfs_removexattr, |
7458 | .check_acl = btrfs_check_acl, | ||
7454 | }; | 7459 | }; |
7455 | 7460 | ||
7456 | const struct dentry_operations btrfs_dentry_operations = { | 7461 | const struct dentry_operations btrfs_dentry_operations = { |