]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ovl: make oip->index bool
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 4 Jun 2020 08:48:19 +0000 (10:48 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 4 Jun 2020 08:48:19 +0000 (10:48 +0200)
ovl_get_inode() uses oip->index as a bool value, not as a pointer.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/inode.c
fs/overlayfs/overlayfs.h

index 5148c63bbf4e0be71d5b06483bb18a160b73ac15..0424ee11210f71b4f380d3ecbfa7e8543a369ea1 100644 (file)
@@ -908,7 +908,7 @@ struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir)
  * Does overlay inode need to be hashed by lower inode?
  */
 static bool ovl_hash_bylower(struct super_block *sb, struct dentry *upper,
-                            struct dentry *lower, struct dentry *index)
+                            struct dentry *lower, bool index)
 {
        struct ovl_fs *ofs = sb->s_fs_info;
 
index ffbb57b2d7f6b9ee0163ea6e92e72a6a88b222a9..b725c7f15ff49b4e57ae1d925875496a4fd47831 100644 (file)
@@ -424,7 +424,7 @@ struct ovl_inode_params {
        struct inode *newinode;
        struct dentry *upperdentry;
        struct ovl_path *lowerpath;
-       struct dentry *index;
+       bool index;
        unsigned int numlower;
        char *redirect;
        struct dentry *lowerdata;