Skip to content

Commit 465309d

Browse files
author
Al Viro
committed
ovl_get_verity_digest(): constify path argument
Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent c93cd35 commit 465309d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/overlayfs/overlayfs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ int ovl_ensure_verity_loaded(const struct path *path);
567567
int ovl_validate_verity(struct ovl_fs *ofs,
568568
const struct path *metapath,
569569
const struct path *datapath);
570-
int ovl_get_verity_digest(struct ovl_fs *ofs, struct path *src,
570+
int ovl_get_verity_digest(struct ovl_fs *ofs, const struct path *src,
571571
struct ovl_metacopy *metacopy);
572572
int ovl_sync_status(struct ovl_fs *ofs);
573573

fs/overlayfs/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ int ovl_validate_verity(struct ovl_fs *ofs,
14551455
return 0;
14561456
}
14571457

1458-
int ovl_get_verity_digest(struct ovl_fs *ofs, struct path *src,
1458+
int ovl_get_verity_digest(struct ovl_fs *ofs, const struct path *src,
14591459
struct ovl_metacopy *metacopy)
14601460
{
14611461
int err, digest_size;

0 commit comments

Comments
 (0)