]> 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)
commit8ca3fc1c98603b5f6e0ba04277b70933c1bcbd6d
treeebb8de7d74b26fedbc84636f4e5c6810f7fe3dc6
parent12b9ef84134e233cec15127367d0f21fc977042d
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