From 9dd467a2715df0c7b1484d29b7486b4c6ed39bf8 Mon Sep 17 00:00:00 2001 From: Gvozden Neskovic Date: Wed, 9 Nov 2016 22:53:13 +0100 Subject: [PATCH] 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 Reviewed-by: Brian Behlendorf Reviewed-by: Chunwei Chen Signed-off-by: Gvozden Neskovic Closes #5378 --- config/kernel-acl.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/kernel-acl.m4 b/config/kernel-acl.m4 index f5af7c2f40..b2c33f1c40 100644 --- a/config/kernel-acl.m4 +++ b/config/kernel-acl.m4 @@ -57,8 +57,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,