ZFS_ACLTYPE_POSIXACL has already been tested in zpl_init_acl(),
so no need to test again on POSIX ACL access.
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #9009
return (0);
if (!S_ISLNK(ip->i_mode)) {
- if (ITOZSB(ip)->z_acl_type == ZFS_ACLTYPE_POSIXACL) {
- acl = zpl_get_acl(dir, ACL_TYPE_DEFAULT);
- if (IS_ERR(acl))
- return (PTR_ERR(acl));
- }
-
+ acl = zpl_get_acl(dir, ACL_TYPE_DEFAULT);
+ if (IS_ERR(acl))
+ return (PTR_ERR(acl));
if (!acl) {
ip->i_mode &= ~current_umask();
ip->i_ctime = current_time(ip);
}
}
- if ((ITOZSB(ip)->z_acl_type == ZFS_ACLTYPE_POSIXACL) && acl) {
+ if (acl) {
umode_t mode;
if (S_ISDIR(ip->i_mode)) {