]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ovl: create directories inside merged parent opaque
authorAmir Goldstein <amir73il@gmail.com>
Mon, 21 Nov 2016 16:57:34 +0000 (18:57 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 16 Dec 2016 10:02:57 +0000 (11:02 +0100)
commit97c684cc911060ba7f97c0925eaf842f159a39e8
treeebb8de7d74b26fedbc84636f4e5c6810f7fe3dc6
parent5cf5b477f0ca33f56a30c7ec00e61a6204da2efb
ovl: create directories inside merged parent opaque

The benefit of making directories opaque on creation is that lookups can
stop short when they reach the original created directory, instead of
continue lookup the entire depth of parent directory stack.

The best case is overlay with N layers, performing lookup for first level
directory, which exists only in upper.  In that case, there will be only
one lookup instead of N.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/dir.c