ovl: Pass ovl_get_nlink() parameters in right order
authorVivek Goyal <vgoyal@redhat.com>
Mon, 27 Nov 2017 15:12:44 +0000 (10:12 -0500)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 11 Dec 2017 10:28:10 +0000 (11:28 +0100)
commit08d8f8a5b094b66b29936e8751b4a818b8db1207
tree7d3caa52694037484bc97e72011eda2f6c37dd1a
parent438c84c2f0c794f75ab55ce65c505b01bfce4480
ovl: Pass ovl_get_nlink() parameters in right order

Right now we seem to be passing index as "lowerdentry" and origin.dentry
as "upperdentry". IIUC, we should pass these parameters in reversed order
and this looks like a bug.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Acked-by: Amir Goldstein <amir73il@gmail.com>
Fixes: caf70cb2ba5d ("ovl: cleanup orphan index entries")
Cc: <stable@vger.kernel.org> #v4.13
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/namei.c