]> git.baikalelectronics.ru Git - 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)
commitfb62f6b55b7aea7c2ed741ff89c0a80edbb66eea
treeebb8de7d74b26fedbc84636f4e5c6810f7fe3dc6
parentc57c05bcbf858a2d877bd1335f593660c6e60395
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