]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ovl: convert ovl_real_fdget_path() callers to ovl_real_file_path()
authorAmir Goldstein <amir73il@gmail.com>
Tue, 5 Nov 2024 20:28:49 +0000 (21:28 +0100)
committerAmir Goldstein <amir73il@gmail.com>
Fri, 15 Nov 2024 07:56:48 +0000 (08:56 +0100)
commit4333e42ed44448898a31665339702591284d1698
tree16ad94474f324cd8bec1f76f7e3c22a841a8d931
parent18e48d0e2c7b137be532fedbb5fba31b43e043b2
ovl: convert ovl_real_fdget_path() callers to ovl_real_file_path()

Stop using struct fd to return a real file from ovl_real_fdget_path(),
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_path(), 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