aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorGvozden Neskovic <[email protected]>2016-11-09 22:53:13 +0100
committerBrian Behlendorf <[email protected]>2016-11-09 13:53:13 -0800
commit7e5ea7be7f69231b66c1affddb870fcea8c3a4d8 (patch)
treeab83c42553f558d5ad697058c9c272f35d28cdf5 /config
parent126ae9f4e9a8e39f65fcd55e3e1cf90d4e9c6f56 (diff)
Fix ZFS_AC_KERNEL_SET_CACHED_ACL_USABLE check
Pass `ACL_TYPE_ACCESS` for type parameter of `set_cached_acl()` and `forget_cached_acl()` to avoid removal of dead code after BUG() in compile time. Tested on 3.2.0 kernel. Introduced in 3779913 Reviewed-by: Massimo Maggi <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Chunwei Chen <[email protected]> Signed-off-by: Gvozden Neskovic <[email protected]> Closes #5378
Diffstat (limited to 'config')
-rw-r--r--config/kernel-acl.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/config/kernel-acl.m4 b/config/kernel-acl.m4
index 72510854a..311484349 100644
--- a/config/kernel-acl.m4
+++ b/config/kernel-acl.m4
@@ -58,8 +58,8 @@ AC_DEFUN([ZFS_AC_KERNEL_SET_CACHED_ACL_USABLE], [
],[
struct inode *ip = NULL;
struct posix_acl *acl = posix_acl_alloc(1, 0);
- set_cached_acl(ip, 0, acl);
- forget_cached_acl(ip, 0);
+ set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
+ forget_cached_acl(ip, ACL_TYPE_ACCESS);
],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_SET_CACHED_ACL_USABLE, 1,