GFS2: gfs2_set_acl(): Cache "no acl" as well
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 13 Feb 2015 18:16:37 +0000 (12:16 -0600)
committerBob Peterson <rpeterso@redhat.com>
Wed, 18 Mar 2015 17:41:57 +0000 (12:41 -0500)
commit932e468a377f62569fe3818f160fadbaef3f26bd
tree8bbd65f30c4852a8a08547a23bfda51efb5c8631
parent28666d6dc3feca2b1983e6011df383299d8b6b64
GFS2: gfs2_set_acl(): Cache "no acl" as well

When removing a default acl or setting an access acl that is entirely
represented in the file mode, we end up with acl == NULL in gfs2_set_acl(). In
that case, bring gfs2 in line with other file systems and cache the NULL acl
with set_cached_acl() instead of invalidating the cache with
forget_cached_acl().

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/acl.c