]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ovl_ensure_verity_loaded(): constify datapath argument
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Jul 2025 01:49:22 +0000 (21:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:17:09 +0000 (21:17 -0400)
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/overlayfs/overlayfs.h
fs/overlayfs/util.c

index bb0d7ded8e763a4a7a6fc506d966ed2f3bdb4f06..53a8ba572a0f4d106a778194f2e71b915cdf067d 100644 (file)
@@ -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);
index 41033bac96cbbb711103178e599876263c96d66a..35eb8ee6c9e263aa0e9dab318f00a4c29b90cb40 100644 (file)
@@ -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;