summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/util.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2020-01-24 09:46:45 +0100
committerMiklos Szeredi <mszeredi@redhat.com>2020-01-24 09:46:45 +0100
commit1346416564f06444ca59778c05607bedb91a991a (patch)
tree605888ab1b04c2bf048464bc4e435fd1b5ca020b /fs/overlayfs/util.c
parentovl: fix corner case of non-constant st_dev;st_ino (diff)
downloadlinux-1346416564f06444ca59778c05607bedb91a991a.tar.xz
linux-1346416564f06444ca59778c05607bedb91a991a.zip
ovl: layer is const
The ovl_layer struct is never modified except at initialization. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/util.c')
-rw-r--r--fs/overlayfs/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/util.c b/fs/overlayfs/util.c
index df503a8c6bcf..ea005085803f 100644
--- a/fs/overlayfs/util.c
+++ b/fs/overlayfs/util.c
@@ -186,7 +186,7 @@ struct dentry *ovl_dentry_lower(struct dentry *dentry)
return oe->numlower ? oe->lowerstack[0].dentry : NULL;
}
-struct ovl_layer *ovl_layer_lower(struct dentry *dentry)
+const struct ovl_layer *ovl_layer_lower(struct dentry *dentry)
{
struct ovl_entry *oe = dentry->d_fsdata;