ovl: generalize the lower_fs[] array
authorAmir Goldstein <amir73il@gmail.com>
Tue, 14 Jan 2020 19:59:22 +0000 (21:59 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 24 Jan 2020 08:46:45 +0000 (09:46 +0100)
commit07f1e59637a8e5a8bddba5da7567d46635da510f
tree8a43de3ec60a68b074dd85e945ccf0d0ce987420
parent0f831ec85eda1ae27490baba106aba632c1d8e94
ovl: generalize the lower_fs[] array

Rename lower_fs[] array to fs[], extend its size by one and use index fsid
(instead of fsid-1) to access the fs[] array.

Initialize fs[0] with upper fs values. fsid 0 is reserved even with lower
only overlay, so fs[0] remains null in this case.

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