]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
f2fs: cache NULL when both default_acl and acl are NULL
authorChengguang Xu <cgxu519@gmx.com>
Fri, 31 Aug 2018 14:33:50 +0000 (22:33 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 11 Sep 2018 20:16:03 +0000 (13:16 -0700)
commit313ed62a3ddc2cbe16087630910b41a87bfd9a1f
tree8aaad9640dfe790225017047a8a32e9011ee6db4
parent1378752b9921e60749eaf18ec6c47b33f9001abb
f2fs: 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>
Acked-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/acl.c