]> git.baikalelectronics.ru Git - kernel.git/commit
jfs: cache NULL when both default_acl and acl are NULL
authorChengguang Xu <cgxu519@gmx.com>
Fri, 31 Aug 2018 14:33:51 +0000 (22:33 +0800)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 6 Sep 2018 16:56:26 +0000 (11:56 -0500)
commit5297dc91cd781abbcfb2d211d1229cf888f300ec
tree9fd08b9062de7f0120475656257e6bbe25b2f72d
parentdfbee32726f51419502881b141d8da844dc1ca12
jfs: cache NULL when both default_acl and acl are NULL

default_acl and acl of newly created inode will be initiated
as ACL_NOT_CACHED in vfs function inode_init_always() and later
will be updated by calling xxx_init_acl() in specific filesystems.
Howerver, when default_acl and acl are NULL then they keep the value
of ACL_NOT_CACHED, this patch tries to cache NULL for acl/default_acl
in this case.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/acl.c