vfs: make first argument of dir_context.actor typed
[deliverable/linux.git] / drivers / staging / lustre / lustre / llite / llite_nfs.c
index ae3a12ab7fa186cfc0d38c6b600f908ddbc4cba3..243a7840457f17457a32d86a039eacedcbceeaa1 100644 (file)
@@ -207,13 +207,15 @@ static int ll_encode_fh(struct inode *inode, __u32 *fh, int *plen,
        return LUSTRE_NFS_FID;
 }
 
-static int ll_nfs_get_name_filldir(void *cookie, const char *name, int namelen,
-                                  loff_t hash, u64 ino, unsigned type)
+static int ll_nfs_get_name_filldir(struct dir_context *ctx, const char *name,
+                                  int namelen, loff_t hash, u64 ino,
+                                  unsigned type)
 {
        /* It is hack to access lde_fid for comparison with lgd_fid.
         * So the input 'name' must be part of the 'lu_dirent'. */
        struct lu_dirent *lde = container_of0(name, struct lu_dirent, lde_name);
-       struct ll_getname_data *lgd = cookie;
+       struct ll_getname_data *lgd =
+               container_of(ctx, struct ll_getname_data, ctx);
        struct lu_fid fid;
 
        fid_le_to_cpu(&fid, &lde->lde_fid);
This page took 0.106377 seconds and 5 git commands to generate.