From: Amir Goldstein Date: Sat, 7 Jun 2025 11:53:04 +0000 (+0200) Subject: ovl: remove unneeded non-const conversion X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec2529eca6f175f4e3e87c4534010e044839b38;p=thirdparty%2Fkernel%2Flinux.git ovl: remove unneeded non-const conversion file_user_path() now takes a const file ptr. Signed-off-by: Amir Goldstein Link: https://lore.kernel.org/20250607115304.2521155-3-amir73il@gmail.com Signed-off-by: Christian Brauner --- diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c index dfea7bd800cb4..f5b8877d5fe27 100644 --- a/fs/overlayfs/file.c +++ b/fs/overlayfs/file.c @@ -48,7 +48,7 @@ static struct file *ovl_open_realfile(const struct file *file, if (!inode_owner_or_capable(real_idmap, realinode)) flags &= ~O_NOATIME; - realfile = backing_file_open(file_user_path((struct file *) file), + realfile = backing_file_open(file_user_path(file), flags, realpath, current_cred()); } ovl_revert_creds(old_cred);