aboutsummaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/ovl_entry.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2017-03-22 08:42:21 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2017-05-05 11:38:57 +0200
commit7bcd74b98d7bac3e5149894caaf72de6989af7f0 (patch)
tree0b7b0bb5dd7848ad6572b50d64ad81059e2b5fae /fs/overlayfs/ovl_entry.h
parentovl: do not set overlay.opaque on non-dir create (diff)
downloadlinux-dev-7bcd74b98d7bac3e5149894caaf72de6989af7f0.tar.xz
linux-dev-7bcd74b98d7bac3e5149894caaf72de6989af7f0.zip
ovl: check if all layers are on the same fs
Some features can only work when all layers are on the same fs. Test this condition during mount time, so features can check them later. Add helper ovl_same_sb() to return the common super block in case all layers are on the same fs. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/overlayfs/ovl_entry.h b/fs/overlayfs/ovl_entry.h
index 59614faa14c3..b2023ddb8532 100644
--- a/fs/overlayfs/ovl_entry.h
+++ b/fs/overlayfs/ovl_entry.h
@@ -29,6 +29,8 @@ struct ovl_fs {
const struct cred *creator_cred;
bool tmpfile;
wait_queue_head_t copyup_wq;
+ /* sb common to all layers */
+ struct super_block *same_sb;
};
/* private information held for every overlayfs dentry */