]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/ocfs2/journal.c
vfs: make first argument of dir_context.actor typed
[mirror_ubuntu-bionic-kernel.git] / fs / ocfs2 / journal.c
index 4b0c68849b3610ec1e448607b376c6545a1738ed..4f502382180f676c518ee44d34cda933a2952b7e 100644 (file)
@@ -1982,10 +1982,12 @@ struct ocfs2_orphan_filldir_priv {
        struct ocfs2_super      *osb;
 };
 
-static int ocfs2_orphan_filldir(void *priv, const char *name, int name_len,
-                               loff_t pos, u64 ino, unsigned type)
+static int ocfs2_orphan_filldir(struct dir_context *ctx, const char *name,
+                               int name_len, loff_t pos, u64 ino,
+                               unsigned type)
 {
-       struct ocfs2_orphan_filldir_priv *p = priv;
+       struct ocfs2_orphan_filldir_priv *p =
+               container_of(ctx, struct ocfs2_orphan_filldir_priv, ctx);
        struct inode *iter;
 
        if (name_len == 1 && !strncmp(".", name, 1))