From: Al Viro Date: Mon, 7 Jul 2025 01:49:22 +0000 (-0400) Subject: ovl_ensure_verity_loaded(): constify datapath argument X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e978e8fb6a349a7a413e8a8fe4b1366122ae467;p=thirdparty%2Fkernel%2Fstable.git ovl_ensure_verity_loaded(): constify datapath argument Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h index bb0d7ded8e763..53a8ba572a0f4 100644 --- a/fs/overlayfs/overlayfs.h +++ b/fs/overlayfs/overlayfs.h @@ -563,7 +563,7 @@ int ovl_set_metacopy_xattr(struct ovl_fs *ofs, struct dentry *d, struct ovl_metacopy *metacopy); bool ovl_is_metacopy_dentry(struct dentry *dentry); char *ovl_get_redirect_xattr(struct ovl_fs *ofs, const struct path *path, int padding); -int ovl_ensure_verity_loaded(struct path *path); +int ovl_ensure_verity_loaded(const struct path *path); int ovl_validate_verity(struct ovl_fs *ofs, struct path *metapath, struct path *datapath); diff --git a/fs/overlayfs/util.c b/fs/overlayfs/util.c index 41033bac96cbb..35eb8ee6c9e26 100644 --- a/fs/overlayfs/util.c +++ b/fs/overlayfs/util.c @@ -1381,7 +1381,7 @@ err_free: } /* Call with mounter creds as it may open the file */ -int ovl_ensure_verity_loaded(struct path *datapath) +int ovl_ensure_verity_loaded(const struct path *datapath) { struct inode *inode = d_inode(datapath->dentry); struct file *filp;