Skip to content

Commit c93cd35

Browse files
author
Al Viro
committed
ovl_validate_verity(): constify {meta,data}path arguments
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 7e978e8 commit c93cd35

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

fs/overlayfs/overlayfs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,8 @@ bool ovl_is_metacopy_dentry(struct dentry *dentry);
565565
char *ovl_get_redirect_xattr(struct ovl_fs *ofs, const struct path *path, int padding);
566566
int ovl_ensure_verity_loaded(const struct path *path);
567567
int ovl_validate_verity(struct ovl_fs *ofs,
568-
struct path *metapath,
569-
struct path *datapath);
568+
const struct path *metapath,
569+
const struct path *datapath);
570570
int ovl_get_verity_digest(struct ovl_fs *ofs, struct path *src,
571571
struct ovl_metacopy *metacopy);
572572
int ovl_sync_status(struct ovl_fs *ofs);

fs/overlayfs/util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,8 +1401,8 @@ int ovl_ensure_verity_loaded(const struct path *datapath)
14011401
}
14021402

14031403
int ovl_validate_verity(struct ovl_fs *ofs,
1404-
struct path *metapath,
1405-
struct path *datapath)
1404+
const struct path *metapath,
1405+
const struct path *datapath)
14061406
{
14071407
struct ovl_metacopy metacopy_data;
14081408
u8 actual_digest[FS_VERITY_MAX_DIGEST_SIZE];

0 commit comments

Comments
 (0)