提交 e9b77f90 编写于 作者: V Vivek Goyal 提交者: Miklos Szeredi

ovl: Do not check for redirect if this is last layer

If we are looking in last layer, then there should not be any need to
process redirect. redirect information is used only for lookup in next
lower layer and there is no more lower layer to look into. So no need
to process redirects.

IOW, ignore redirects on lowest layer.
Signed-off-by: NVivek Goyal <vgoyal@redhat.com>
Reviewed-by: NAmir Goldstein <amir73il@gmail.com>
Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
上级 8b58924a
...@@ -258,7 +258,10 @@ static int ovl_lookup_single(struct dentry *base, struct ovl_lookup_data *d, ...@@ -258,7 +258,10 @@ static int ovl_lookup_single(struct dentry *base, struct ovl_lookup_data *d,
goto out; goto out;
} }
d->is_dir = true; d->is_dir = true;
if (!d->last && ovl_is_opaquedir(this)) { if (d->last)
goto out;
if (ovl_is_opaquedir(this)) {
d->stop = d->opaque = true; d->stop = d->opaque = true;
goto out; goto out;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册