]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: use cached acl on underlying layer
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 1 Sep 2016 09:11:59 +0000 (11:11 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 1 Sep 2016 09:11:59 +0000 (11:11 +0200)
commit1e1cf4a6b075ea83a830ebeb756b8df8977ab98f
tree06076e84519b88f46240ea8bdb3a618f1159d5e6
parentacbff11293d7374d2f7f1d9eb860a6c11e5675f2
ovl: use cached acl on underlying layer

Instead of calling ->get_acl() directly, use get_acl() to get the cached
value.

We will have the acl cached on the underlying inode anyway, because we do
permission checking on the both the overlay and the underlying fs.

So, since we already have double caching, this improves performance without
any cost.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/inode.c