diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-28 11:38:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-28 11:38:04 -0500 |
commit | bf3d846b783327359ddc4bd4f52627b36abb4d1d (patch) | |
tree | c6b8fddbf04a2962dfcf9f487af25033f11b10b9 /fs/btrfs/inode.c | |
parent | 54c0a4b46150db1571d955d598cd342c9f1d9657 (diff) | |
parent | f6500801522c61782d4990fa1ad96154cb397cd4 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs updates from Al Viro:
"Assorted stuff; the biggest pile here is Christoph's ACL series. Plus
assorted cleanups and fixes all over the place...
There will be another pile later this week"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (43 commits)
__dentry_path() fixes
vfs: Remove second variable named error in __dentry_path
vfs: Is mounted should be testing mnt_ns for NULL or error.
Fix race when checking i_size on direct i/o read
hfsplus: remove can_set_xattr
nfsd: use get_acl and ->set_acl
fs: remove generic_acl
nfs: use generic posix ACL infrastructure for v3 Posix ACLs
gfs2: use generic posix ACL infrastructure
jfs: use generic posix ACL infrastructure
xfs: use generic posix ACL infrastructure
reiserfs: use generic posix ACL infrastructure
ocfs2: use generic posix ACL infrastructure
jffs2: use generic posix ACL infrastructure
hfsplus: use generic posix ACL infrastructure
f2fs: use generic posix ACL infrastructure
ext2/3/4: use generic posix ACL infrastructure
btrfs: use generic posix ACL infrastructure
fs: make posix_acl_create more useful
fs: make posix_acl_chmod more useful
...
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 471a4f7f4044..514b291b1354 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -4468,7 +4468,7 @@ static int btrfs_setattr(struct dentry *dentry, struct iattr *attr) | |||
4468 | err = btrfs_dirty_inode(inode); | 4468 | err = btrfs_dirty_inode(inode); |
4469 | 4469 | ||
4470 | if (!err && attr->ia_valid & ATTR_MODE) | 4470 | if (!err && attr->ia_valid & ATTR_MODE) |
4471 | err = btrfs_acl_chmod(inode); | 4471 | err = posix_acl_chmod(inode, inode->i_mode); |
4472 | } | 4472 | } |
4473 | 4473 | ||
4474 | return err; | 4474 | return err; |
@@ -8653,12 +8653,14 @@ static const struct inode_operations btrfs_dir_inode_operations = { | |||
8653 | .removexattr = btrfs_removexattr, | 8653 | .removexattr = btrfs_removexattr, |
8654 | .permission = btrfs_permission, | 8654 | .permission = btrfs_permission, |
8655 | .get_acl = btrfs_get_acl, | 8655 | .get_acl = btrfs_get_acl, |
8656 | .set_acl = btrfs_set_acl, | ||
8656 | .update_time = btrfs_update_time, | 8657 | .update_time = btrfs_update_time, |
8657 | }; | 8658 | }; |
8658 | static const struct inode_operations btrfs_dir_ro_inode_operations = { | 8659 | static const struct inode_operations btrfs_dir_ro_inode_operations = { |
8659 | .lookup = btrfs_lookup, | 8660 | .lookup = btrfs_lookup, |
8660 | .permission = btrfs_permission, | 8661 | .permission = btrfs_permission, |
8661 | .get_acl = btrfs_get_acl, | 8662 | .get_acl = btrfs_get_acl, |
8663 | .set_acl = btrfs_set_acl, | ||
8662 | .update_time = btrfs_update_time, | 8664 | .update_time = btrfs_update_time, |
8663 | }; | 8665 | }; |
8664 | 8666 | ||
@@ -8728,6 +8730,7 @@ static const struct inode_operations btrfs_file_inode_operations = { | |||
8728 | .permission = btrfs_permission, | 8730 | .permission = btrfs_permission, |
8729 | .fiemap = btrfs_fiemap, | 8731 | .fiemap = btrfs_fiemap, |
8730 | .get_acl = btrfs_get_acl, | 8732 | .get_acl = btrfs_get_acl, |
8733 | .set_acl = btrfs_set_acl, | ||
8731 | .update_time = btrfs_update_time, | 8734 | .update_time = btrfs_update_time, |
8732 | }; | 8735 | }; |
8733 | static const struct inode_operations btrfs_special_inode_operations = { | 8736 | static const struct inode_operations btrfs_special_inode_operations = { |
@@ -8739,6 +8742,7 @@ static const struct inode_operations btrfs_special_inode_operations = { | |||
8739 | .listxattr = btrfs_listxattr, | 8742 | .listxattr = btrfs_listxattr, |
8740 | .removexattr = btrfs_removexattr, | 8743 | .removexattr = btrfs_removexattr, |
8741 | .get_acl = btrfs_get_acl, | 8744 | .get_acl = btrfs_get_acl, |
8745 | .set_acl = btrfs_set_acl, | ||
8742 | .update_time = btrfs_update_time, | 8746 | .update_time = btrfs_update_time, |
8743 | }; | 8747 | }; |
8744 | static const struct inode_operations btrfs_symlink_inode_operations = { | 8748 | static const struct inode_operations btrfs_symlink_inode_operations = { |
@@ -8752,7 +8756,6 @@ static const struct inode_operations btrfs_symlink_inode_operations = { | |||
8752 | .getxattr = btrfs_getxattr, | 8756 | .getxattr = btrfs_getxattr, |
8753 | .listxattr = btrfs_listxattr, | 8757 | .listxattr = btrfs_listxattr, |
8754 | .removexattr = btrfs_removexattr, | 8758 | .removexattr = btrfs_removexattr, |
8755 | .get_acl = btrfs_get_acl, | ||
8756 | .update_time = btrfs_update_time, | 8759 | .update_time = btrfs_update_time, |
8757 | }; | 8760 | }; |
8758 | 8761 | ||