]> git.baikalelectronics.ru Git - kernel.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)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 19 Jun 2019 07:04:19 +0000 (09:04 +0200)
commit6e3fd42e55942f5fafd18cb57a3b92b33684d288
treedc9907a62628c96d289c3b74bae110f0c740255b
parente6a2f055896c561341aa88776ca0adf874c026b7
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: 1737b8ac3b37 ("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