]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - fs/orangefs/acl.c
orangefs: cache NULL when both default_acl and acl are NULL
authorChengguang Xu <cgxu519@gmx.com>
Fri, 31 Aug 2018 14:33:52 +0000 (22:33 +0800)
committerMike Marshall <hubcap@omnibond.com>
Wed, 10 Oct 2018 13:54:25 +0000 (09:54 -0400)
commit052d12766b7147500d9d5017bb90d4524f01e731
tree789e2ca1f198b983c12905736763d731eba13d56
parent0238df646e6224016a45505d2c111a24669ebe21
orangefs: 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: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/acl.c