if (IS_ERR(default_acl))
return -PTR_ERR(default_acl);
- if (!default_acl)
- mode &= ~current->fs->umask;
+ if (!default_acl)
+ mode &= ~current_umask();
}
xfs_dentry_to_name(&name, dentry);
mode_t mode;
mode = S_IFLNK |
- (irix_symlink_mode ? 0777 & ~current->fs->umask : S_IRWXUGO);
+ (irix_symlink_mode ? 0777 & ~current_umask() : S_IRWXUGO);
xfs_dentry_to_name(&name, dentry);
error = xfs_symlink(XFS_I(dir), &name, symname, mode, &cip, NULL);