summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/super.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2017-09-24 12:00:19 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2017-11-10 09:39:16 +0100
commitd9768076068f81687b3dbddbd76b5e108f5d53d0 (patch)
treed573844434ccb2c0fc6b780db4023d7a8d7a3432 /fs/overlayfs/super.c
parentovl: Put upperdentry if ovl_check_origin() fails (diff)
downloadlinux-d9768076068f81687b3dbddbd76b5e108f5d53d0.tar.xz
linux-d9768076068f81687b3dbddbd76b5e108f5d53d0.zip
ovl: remove unneeded arg from ovl_verify_origin()
Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/super.c')
-rw-r--r--fs/overlayfs/super.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index 3156e908423e..be03578181d2 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -983,9 +983,7 @@ static int ovl_get_indexdir(struct ovl_fs *ofs, struct ovl_entry *oe,
int err;
/* Verify lower root is upper root origin */
- err = ovl_verify_origin(upperpath->dentry,
- oe->lowerstack[0].layer->mnt,
- oe->lowerstack[0].dentry,
+ err = ovl_verify_origin(upperpath->dentry, oe->lowerstack[0].dentry,
false, true);
if (err) {
pr_err("overlayfs: failed to verify upper root origin\n");
@@ -995,8 +993,8 @@ static int ovl_get_indexdir(struct ovl_fs *ofs, struct ovl_entry *oe,
ofs->indexdir = ovl_workdir_create(ofs, OVL_INDEXDIR_NAME, true);
if (ofs->indexdir) {
/* Verify upper root is index dir origin */
- err = ovl_verify_origin(ofs->indexdir, ofs->upper_mnt,
- upperpath->dentry, true, true);
+ err = ovl_verify_origin(ofs->indexdir, upperpath->dentry,
+ true, true);
if (err)
pr_err("overlayfs: failed to verify index dir origin\n");