]> 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:35:52 +0000 (11:35 +0800)
commita00f405e133fb486a34fb7cc1bdc64deab4d4fa0
tree58300f8fcf434efd6b238d335cc44acf4e4839d6
parentd6623379d895db1cfd111469e6872b39839c91b1
ovl: make i_ino consistent with st_ino in more cases

[ Upstream commit 6dde1e42f497b2d4e22466f23019016775607947 ]

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: Sasha Levin <sashal@kernel.org>
fs/overlayfs/inode.c