summaryrefslogtreecommitdiff
path: root/fs/overlayfs/ovl_entry.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2020-01-14 22:59:22 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2020-01-24 11:46:45 +0300
commit07f1e59637a8e5a8bddba5da7567d46635da510f (patch)
tree8a43de3ec60a68b074dd85e945ccf0d0ce987420 /fs/overlayfs/ovl_entry.h
parent0f831ec85eda1ae27490baba106aba632c1d8e94 (diff)
downloadlinux-07f1e59637a8e5a8bddba5da7567d46635da510f.tar.xz
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>
Diffstat (limited to 'fs/overlayfs/ovl_entry.h')
-rw-r--r--fs/overlayfs/ovl_entry.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/overlayfs/ovl_entry.h b/fs/overlayfs/ovl_entry.h
index 9a785702a2a4..d9fbebdb6076 100644
--- a/fs/overlayfs/ovl_entry.h
+++ b/fs/overlayfs/ovl_entry.h
@@ -46,10 +46,10 @@ struct ovl_path {
struct ovl_fs {
struct vfsmount *upper_mnt;
unsigned int numlayer;
- /* Number of unique lower sb that differ from upper sb */
- unsigned int numlowerfs;
+ /* Number of unique fs among layers including upper fs */
+ unsigned int numfs;
struct ovl_layer *layers;
- struct ovl_sb *lower_fs;
+ struct ovl_sb *fs;
/* workbasedir is the path at workdir= mount option */
struct dentry *workbasedir;
/* workdir is the 'work' directory under workbasedir */