ovl: store layer index in ovl_layer
authorAmir Goldstein <amir73il@gmail.com>
Wed, 8 Nov 2017 17:23:36 +0000 (19:23 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 09:19:25 +0000 (10:19 +0100)
commitd583ed7d138825fd9469d5419e23230ad39173e8
tree2da4bca9cba146bedead26fff6355b987a44b858
parent972d0093c2f7b1bd57e47a1780a552dde528fd16
ovl: store layer index in ovl_layer

Store the fs root layer index inside ovl_layer struct, so we can
get the root fs layer index from merge dir lower layer instead of
find it with ovl_find_layer() helper.

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