Lines Matching refs:rd
139 struct hfsplus_readdir_data *rd; in hfsplus_readdir() local
265 rd = file->private_data; in hfsplus_readdir()
266 if (!rd) { in hfsplus_readdir()
267 rd = kmalloc(sizeof(struct hfsplus_readdir_data), GFP_KERNEL); in hfsplus_readdir()
268 if (!rd) { in hfsplus_readdir()
272 file->private_data = rd; in hfsplus_readdir()
273 rd->file = file; in hfsplus_readdir()
274 list_add(&rd->list, &HFSPLUS_I(inode)->open_dir_list); in hfsplus_readdir()
276 memcpy(&rd->key, fd.key, sizeof(struct hfsplus_cat_key)); in hfsplus_readdir()
285 struct hfsplus_readdir_data *rd = file->private_data; in hfsplus_dir_release() local
286 if (rd) { in hfsplus_dir_release()
288 list_del(&rd->list); in hfsplus_dir_release()
290 kfree(rd); in hfsplus_dir_release()