ovl: fetch inode once in ovl_dentry_revalidate_common()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 2 Oct 2023 02:36:43 +0000 (03:36 +0100)
committerAmir Goldstein <amir73il@gmail.com>
Mon, 2 Oct 2023 14:44:19 +0000 (17:44 +0300)
commitc54719c92aa3129f330cce81b88cf34f1627f756
treeb0d3dfd0806d62ac922f128fd18a5c9b37ebce3e
parentd9e8319a6e3538b430f692b5625a76ffa0758adc
ovl: fetch inode once in ovl_dentry_revalidate_common()

d_inode_rcu() is right - we might be in rcu pathwalk;
however, OVL_E() hides plain d_inode() on the same dentry...

Fixes: a6ff2bc0be17 ("ovl: use OVL_E() and OVL_E_FLAGS() accessors")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
fs/overlayfs/super.c