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 <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 4e301d8 commit 3ec2529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)