diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-08-04 19:11:15 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-01 23:38:07 +0200 |
commit | 2d3430875a3a9761fcbd10aed4396b464ed5078c (patch) | |
tree | 8752c2620e1b1c8d25bc3461ccb784881e8ccf4a /fs/overlayfs/namei.c | |
parent | fs/notify: constify path (diff) | |
download | linux-2d3430875a3a9761fcbd10aed4396b464ed5078c.tar.xz linux-2d3430875a3a9761fcbd10aed4396b464ed5078c.zip |
overlayfs: constify path
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/overlayfs/namei.c')
-rw-r--r-- | fs/overlayfs/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/overlayfs/namei.c b/fs/overlayfs/namei.c index 69dc577974f8..0fd1d5fdfc72 100644 --- a/fs/overlayfs/namei.c +++ b/fs/overlayfs/namei.c @@ -26,7 +26,7 @@ struct ovl_lookup_data { bool metacopy; }; -static int ovl_check_redirect(struct path *path, struct ovl_lookup_data *d, +static int ovl_check_redirect(const struct path *path, struct ovl_lookup_data *d, size_t prelen, const char *post) { int res; @@ -194,7 +194,7 @@ struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh, return real; } -static bool ovl_is_opaquedir(struct ovl_fs *ofs, struct path *path) +static bool ovl_is_opaquedir(struct ovl_fs *ofs, const struct path *path) { return ovl_path_check_dir_xattr(ofs, path, OVL_XATTR_OPAQUE); } |