]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/overlayfs/readdir.c
vfs: make first argument of dir_context.actor typed
[mirror_ubuntu-bionic-kernel.git] / fs / overlayfs / readdir.c
index 4e9d7c1fea52a98b85e8c3ce04c792b07ef4377a..301f64aa8a45859b067d072b1d93df2ccd7d2f25 100644 (file)
@@ -180,10 +180,12 @@ static void ovl_cache_put(struct ovl_dir_file *od, struct dentry *dentry)
        }
 }
 
-static int ovl_fill_merge(void *buf, const char *name, int namelen,
-                         loff_t offset, u64 ino, unsigned int d_type)
+static int ovl_fill_merge(struct dir_context *ctx, const char *name,
+                         int namelen, loff_t offset, u64 ino,
+                         unsigned int d_type)
 {
-       struct ovl_readdir_data *rdd = buf;
+       struct ovl_readdir_data *rdd =
+               container_of(ctx, struct ovl_readdir_data, ctx);
 
        rdd->count++;
        if (!rdd->is_merge)