diff options
author | Chunwei Chen <[email protected]> | 2016-08-08 17:26:21 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-08-09 10:03:04 -0700 |
commit | afb6c031e87d511abd9f0f4ec629ab1972490269 (patch) | |
tree | 830fd62e1b69d8f82bbfa14f635299f55be430d1 /config/kernel.m4 | |
parent | 88c4c7a0671afef9016446e0132ba86622929092 (diff) |
Linux 4.7 compat: fix zpl_get_acl returns invalid acl pointer
Starting from Linux 4.7, get_acl will set acl cache pointer to temporary
sentinel value before calling i_op->get_acl. Therefore we can't compare
against ACL_NOT_CACHED and return.
Since from Linux 3.14, get_acl already check the cache for us, so we
disable this in zpl_get_acl.
Linux 4.7 also does set_cached_acl for us so we disable it in zpl_get_acl.
Signed-off-by: Chunwei Chen <[email protected]>
Signed-off-by: Nikolay Borisov <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4944
Closes #4946
Diffstat (limited to 'config/kernel.m4')
-rw-r--r-- | config/kernel.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/kernel.m4 b/config/kernel.m4 index 507e81010..7a207f642 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -49,6 +49,7 @@ AC_DEFUN([ZFS_AC_CONFIG_KERNEL], [ ZFS_AC_KERNEL_INODE_OPERATIONS_CHECK_ACL ZFS_AC_KERNEL_INODE_OPERATIONS_CHECK_ACL_WITH_FLAGS ZFS_AC_KERNEL_INODE_OPERATIONS_GET_ACL + ZFS_AC_KERNE_GET_ACL_HANDLE_CACHE ZFS_AC_KERNEL_SHOW_OPTIONS ZFS_AC_KERNEL_FILE_INODE ZFS_AC_KERNEL_FSYNC |