diff options
Diffstat (limited to 'fs/hfsplus/inode.c')
-rw-r--r-- | fs/hfsplus/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c index 3ebda928229c..4551cbd6bd43 100644 --- a/fs/hfsplus/inode.c +++ b/fs/hfsplus/inode.c | |||
@@ -261,7 +261,7 @@ static int hfsplus_setattr(struct dentry *dentry, struct iattr *attr) | |||
261 | mark_inode_dirty(inode); | 261 | mark_inode_dirty(inode); |
262 | 262 | ||
263 | if (attr->ia_valid & ATTR_MODE) { | 263 | if (attr->ia_valid & ATTR_MODE) { |
264 | error = hfsplus_posix_acl_chmod(inode); | 264 | error = posix_acl_chmod(inode, inode->i_mode); |
265 | if (unlikely(error)) | 265 | if (unlikely(error)) |
266 | return error; | 266 | return error; |
267 | } | 267 | } |
@@ -334,6 +334,7 @@ static const struct inode_operations hfsplus_file_inode_operations = { | |||
334 | .removexattr = hfsplus_removexattr, | 334 | .removexattr = hfsplus_removexattr, |
335 | #ifdef CONFIG_HFSPLUS_FS_POSIX_ACL | 335 | #ifdef CONFIG_HFSPLUS_FS_POSIX_ACL |
336 | .get_acl = hfsplus_get_posix_acl, | 336 | .get_acl = hfsplus_get_posix_acl, |
337 | .set_acl = hfsplus_set_posix_acl, | ||
337 | #endif | 338 | #endif |
338 | }; | 339 | }; |
339 | 340 | ||