]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ovl: make i_ino consistent with st_ino in more cases
authorAmir Goldstein <amir73il@gmail.com>
Sun, 9 Jun 2019 16:03:44 +0000 (19:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jun 2019 03:34:54 +0000 (11:34 +0800)
commite10e064bf6c263d760fcc8f842e89bb1bd3cdf89
tree736697a64ac776d665390e70d0fa623f91d6f180
parent480776dd3cb5fb97d01d154c85ddacf332176dbe
ovl: make i_ino consistent with st_ino in more cases

commit 6dde1e42f497b2d4e22466f23019016775607947 upstream.

Relax the condition that overlayfs supports nfs export, to require
that i_ino is consistent with st_ino/d_ino.

It is enough to require that st_ino and d_ino are consistent.

This fixes the failure of xfstest generic/504, due to mismatch of
st_ino to inode number in the output of /proc/locks.

Fixes: 12574a9f4c9c ("ovl: consistent i_ino for non-samefs with xino")
Cc: <stable@vger.kernel.org> # v4.19
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/overlayfs/inode.c