Commit 3058fca1 authored by Amir Goldstein's avatar Amir Goldstein Committed by Christian Brauner
Browse files

fs: make file_dentry() a simple accessor



file_dentry() is a relic from the days that overlayfs was using files with
a "fake" path, meaning, f_path on overlayfs and f_inode on underlying fs.

In those days, file_dentry() was needed to get the underlying fs dentry
that matches f_inode.

Files with "fake" path should not exist nowadays, so make file_dentry() a
simple accessor and use an assertion to make sure that file_dentry() was
not papering over filesystem bugs.

Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/r/20240202110132.1584111-2-amir73il@gmail.com


Tested-by: default avatarStefan Berger <stefanb@linux.ibm.com>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent e6f79580
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment