diff options
author | Amir Goldstein <amir73il@gmail.com> | 2024-02-02 13:01:31 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-02-06 16:54:45 +0100 |
commit | 3058fca1ed7955c904584a6d86108d664a927177 (patch) | |
tree | 3e741d5c49f03bbe25d3b76ffdccb01464e1cdf8 /Documentation/filesystems | |
parent | epoll: Remove ep_scan_ready_list() in comments (diff) | |
download | wireguard-linux-3058fca1ed7955c904584a6d86108d664a927177.tar.xz wireguard-linux-3058fca1ed7955c904584a6d86108d664a927177.zip |
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: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/r/20240202110132.1584111-2-amir73il@gmail.com
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'Documentation/filesystems')
0 files changed, 0 insertions, 0 deletions