]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit79751533549ebb174b370a36b4eb4c88cfc6f54a
tree789e2ca1f198b983c12905736763d731eba13d56
parentcc57feb3b8b4dd2db99836ab928838821c89c4fc
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