Skip to content

Commit 7e978e8

Browse files
author
Al Viro
committed
ovl_ensure_verity_loaded(): constify datapath argument
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 3d866c3 commit 7e978e8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fs/overlayfs/overlayfs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ int ovl_set_metacopy_xattr(struct ovl_fs *ofs, struct dentry *d,
563563
struct ovl_metacopy *metacopy);
564564
bool ovl_is_metacopy_dentry(struct dentry *dentry);
565565
char *ovl_get_redirect_xattr(struct ovl_fs *ofs, const struct path *path, int padding);
566-
int ovl_ensure_verity_loaded(struct path *path);
566+
int ovl_ensure_verity_loaded(const struct path *path);
567567
int ovl_validate_verity(struct ovl_fs *ofs,
568568
struct path *metapath,
569569
struct path *datapath);

fs/overlayfs/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ char *ovl_get_redirect_xattr(struct ovl_fs *ofs, const struct path *path, int pa
13811381
}
13821382

13831383
/* Call with mounter creds as it may open the file */
1384-
int ovl_ensure_verity_loaded(struct path *datapath)
1384+
int ovl_ensure_verity_loaded(const struct path *datapath)
13851385
{
13861386
struct inode *inode = d_inode(datapath->dentry);
13871387
struct file *filp;

0 commit comments

Comments
 (0)