Lines Matching refs:pcol_copy
312 struct page_collect *pcol_copy = NULL; in read_exec() local
335 pcol_copy = kmalloc(sizeof(*pcol_copy), GFP_KERNEL); in read_exec()
336 if (!pcol_copy) { in read_exec()
341 *pcol_copy = *pcol; in read_exec()
343 ios->private = pcol_copy; in read_exec()
348 ret = _maybe_not_all_in_one_io(ios, pcol_copy, pcol); in read_exec()
364 if (!pcol_copy) /* Failed before ownership transfer */ in read_exec()
365 pcol_copy = pcol; in read_exec()
366 _unlock_pcol_pages(pcol_copy, ret, READ); in read_exec()
367 pcol_free(pcol_copy); in read_exec()
368 kfree(pcol_copy); in read_exec()
628 struct page_collect *pcol_copy = NULL; in write_exec() local
641 pcol_copy = kmalloc(sizeof(*pcol_copy), GFP_KERNEL); in write_exec()
642 if (!pcol_copy) { in write_exec()
648 *pcol_copy = *pcol; in write_exec()
651 ios->pages = pcol_copy->pages; in write_exec()
654 ios->private = pcol_copy; in write_exec()
659 ret = _maybe_not_all_in_one_io(ios, pcol_copy, pcol); in write_exec()
676 if (!pcol_copy) /* Failed before ownership transfer */ in write_exec()
677 pcol_copy = pcol; in write_exec()
678 _unlock_pcol_pages(pcol_copy, ret, WRITE); in write_exec()
679 pcol_free(pcol_copy); in write_exec()
680 kfree(pcol_copy); in write_exec()