ovl: Do not check for redirect if this is last layer
authorVivek Goyal <vgoyal@redhat.com>
Fri, 9 Mar 2018 20:44:42 +0000 (15:44 -0500)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 12 Apr 2018 10:04:49 +0000 (12:04 +0200)
commite9b77f90cc2307f6d2457696d3d76288a5df11fc
tree7c5fc764d973c2edef71c2b9c4ab995632a243cb
parent8b58924ad55c3a9fbeddd1a02d09fd29435e50eb
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: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/namei.c