diff options
| author | Amir Goldstein <amir73il@gmail.com> | 2025-06-07 13:53:04 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-07-18 11:09:33 +0200 |
| commit | 3ec2529eca6f175f4e3e87c4534010e044839b38 (patch) | |
| tree | b5435c2513479ef752faaeed155d919098547a11 | |
| parent | 4e301d858af17ae2ce56886296e5458c5a08219a (diff) | |
| download | linux-3ec2529eca6f175f4e3e87c4534010e044839b38.tar.gz linux-3ec2529eca6f175f4e3e87c4534010e044839b38.zip | |
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>
| -rw-r--r-- | fs/overlayfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c index dfea7bd800cb..f5b8877d5fe2 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); |
