Unverified Commit 3ec2529e authored by Amir Goldstein's avatar Amir Goldstein Committed by Christian Brauner
Browse files

ovl: remove unneeded non-const conversion



file_user_path() now takes a const file ptr.

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


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 4e301d85
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);