ovl: convert ovl_real_fdget() callers to ovl_real_file()
authorAmir Goldstein <amir73il@gmail.com>
Tue, 5 Nov 2024 20:29:36 +0000 (21:29 +0100)
committerAmir Goldstein <amir73il@gmail.com>
Fri, 15 Nov 2024 07:56:49 +0000 (08:56 +0100)
commitd66907b51ba07450bf9c6fb94364e3bf3f5e4c04
tree802de0ebbcaa368aa0cf16fcbed5a44fbdf452ca
parent4333e42ed44448898a31665339702591284d1698
ovl: convert ovl_real_fdget() callers to ovl_real_file()

Stop using struct fd to return a real file from ovl_real_fdget(),
because we no longer return a temporary file object and the callers
always get a borrowed file reference.

Rename the helper to ovl_real_file(), return a borrowed reference of
the real file that is referenced from the overlayfs file or an error.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
fs/overlayfs/file.c