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)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 19 Jun 2019 07:04:19 +0000 (09:04 +0200)
commit6dde1e42f497b2d4e22466f23019016775607947
treedc9907a62628c96d289c3b74bae110f0c740255b
parent253e7483391190c93696bc9710a31b2db9b63d77
ovl: make i_ino consistent with st_ino in more cases

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>
fs/overlayfs/inode.c