Skip to content

Commit

Permalink
Fix ZFS_AC_KERNEL_SET_CACHED_ACL_USABLE check
Browse files Browse the repository at this point in the history
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 openzfs#5378
Requires-builders: style
  • Loading branch information
ironMann authored and behlendorf committed Feb 2, 2017
1 parent 80bf3df commit 8ef0fd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/kernel-acl.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8ef0fd8

Please sign in to comment.