d_alloc_cursor
extern struct dentry *d_alloc_cursor(struct dentry *);
file->private_data = d_alloc_cursor(file->f_path.dentry);