Skip to content

Commit 3ec2529

Browse files
amir73ilbrauner
authored andcommitted
ovl: remove unneeded non-const conversion
file_user_path() now takes a const file ptr. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Link: https://lore.kernel.org/20250607115304.2521155-3-amir73il@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 4e301d8 commit 3ec2529

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/overlayfs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static struct file *ovl_open_realfile(const struct file *file,
4848
if (!inode_owner_or_capable(real_idmap, realinode))
4949
flags &= ~O_NOATIME;
5050

51-
realfile = backing_file_open(file_user_path((struct file *) file),
51+
realfile = backing_file_open(file_user_path(file),
5252
flags, realpath, current_cred());
5353
}
5454
ovl_revert_creds(old_cred);

0 commit comments

Comments
 (0)