ovl: let helper ovl_i_path_real() return the realinode
authorZhihao Cheng <chengzhihao1@huawei.com>
Tue, 16 May 2023 14:16:17 +0000 (22:16 +0800)
committerAmir Goldstein <amir73il@gmail.com>
Mon, 19 Jun 2023 11:00:38 +0000 (14:00 +0300)
commitb2dd05f107b11966e26fe52a313b418364cf497b
tree3514e2abfa2a0a083f1ea171ab95dd45657abe75
parent858fd168a95c5b9669aac8db6c14a9aeab446375
ovl: let helper ovl_i_path_real() return the realinode

Let helper ovl_i_path_real() return the realinode to prepare for
checking non-null realinode in RCU walking path.

[msz] Use d_inode_rcu() since we are depending on the consitency
between dentry and inode being non-NULL in an RCU setting.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Fixes: ffa5723c6d25 ("ovl: store lower path in ovl_inode")
Cc: <stable@vger.kernel.org> # v5.19
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/overlayfs.h
fs/overlayfs/util.c