Chunwei Chen afb6c031e8 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 <david.chen@osnexus.com>
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4944
Closes #4946
2016-08-09 10:03:04 -07:00
..
2011-04-19 10:10:47 -07:00
2012-10-14 13:06:48 -07:00
2015-12-07 12:20:43 -08:00
2013-03-18 15:33:17 -07:00
2016-06-28 13:47:02 -07:00
2016-03-16 13:46:16 -07:00
2016-03-09 10:39:22 -08:00
2016-04-28 09:27:40 -07:00
2016-03-18 13:31:11 -07:00
2016-03-18 13:31:11 -07:00