Lines Matching refs:ios

53 	struct ore_io_state *ios;  member
75 pcol->ios = NULL; in _pcol_init()
94 pcol->ios = NULL; in _pcol_reset()
131 if (pcol->ios) { in pcol_free()
132 ore_put_io_state(pcol->ios); in pcol_free()
133 pcol->ios = NULL; in pcol_free()
200 int ret = ore_check_io(pcol->ios, NULL); in __readpages_done()
243 static void readpages_done(struct ore_io_state *ios, void *p) in readpages_done() argument
268 static int _maybe_not_all_in_one_io(struct ore_io_state *ios, in _maybe_not_all_in_one_io() argument
272 BUG_ON(pcol_src->nr_pages < ios->nr_pages); in _maybe_not_all_in_one_io()
274 if (pcol_src->nr_pages > ios->nr_pages) { in _maybe_not_all_in_one_io()
276 unsigned pages_less = pcol_src->nr_pages - ios->nr_pages; in _maybe_not_all_in_one_io()
277 unsigned long len_less = pcol_src->length - ios->length; in _maybe_not_all_in_one_io()
282 pcol_src->nr_pages = ios->nr_pages; in _maybe_not_all_in_one_io()
283 pcol_src->length = ios->length; in _maybe_not_all_in_one_io()
311 struct ore_io_state *ios; in read_exec() local
318 if (!pcol->ios) { in read_exec()
321 pcol->length, &pcol->ios); in read_exec()
327 ios = pcol->ios; in read_exec()
328 ios->pages = pcol->pages; in read_exec()
331 ore_read(pcol->ios); in read_exec()
342 ios->done = readpages_done; 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()
353 pcol->inode->i_ino, _LLU(ios->offset), _LLU(ios->length)); in read_exec()
355 ret = ore_read(ios); in read_exec()
520 static void writepages_done(struct ore_io_state *ios, void *p) in writepages_done() argument
526 int ret = ore_check_io(ios, NULL); in writepages_done()
627 struct ore_io_state *ios; in write_exec() local
634 BUG_ON(pcol->ios); in write_exec()
637 pcol->length, &pcol->ios); in write_exec()
650 ios = pcol->ios; in write_exec()
651 ios->pages = pcol_copy->pages; in write_exec()
652 ios->done = writepages_done; in write_exec()
653 ios->r4w = &_r4w_op; 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()
664 pcol->inode->i_ino, _LLU(ios->offset), _LLU(ios->length)); in write_exec()
666 ret = ore_write(ios); in write_exec()
1067 struct ore_io_state *ios; in exofs_get_inode() local
1071 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_get_inode()
1080 ios->in_attr = attrs; in exofs_get_inode()
1081 ios->in_attr_len = ARRAY_SIZE(attrs); in exofs_get_inode()
1083 ret = ore_read(ios); in exofs_get_inode()
1096 ret = extract_attr_from_ios(ios, &attrs[0]); in exofs_get_inode()
1104 ret = extract_attr_from_ios(ios, &attrs[1]); in exofs_get_inode()
1119 ret = extract_attr_from_ios(ios, &attrs[2]); in exofs_get_inode()
1135 ore_put_io_state(ios); in exofs_get_inode()
1255 static void create_done(struct ore_io_state *ios, void *p) in create_done() argument
1262 ret = ore_check_io(ios, NULL); in create_done()
1263 ore_put_io_state(ios); in create_done()
1293 struct ore_io_state *ios; in exofs_new_inode() local
1321 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_new_inode()
1327 ios->done = create_done; in exofs_new_inode()
1328 ios->private = inode; in exofs_new_inode()
1330 ret = ore_create(ios); in exofs_new_inode()
1332 ore_put_io_state(ios); in exofs_new_inode()
1351 static void updatei_done(struct ore_io_state *ios, void *p) in updatei_done() argument
1355 ore_put_io_state(ios); in updatei_done()
1371 struct ore_io_state *ios; in exofs_update_inode() local
1410 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_update_inode()
1418 ios->out_attr_len = 1; in exofs_update_inode()
1419 ios->out_attr = &attr; in exofs_update_inode()
1425 ios->done = updatei_done; in exofs_update_inode()
1426 ios->private = args; in exofs_update_inode()
1429 ret = ore_write(ios); in exofs_update_inode()
1435 ore_put_io_state(ios); in exofs_update_inode()
1454 static void delete_done(struct ore_io_state *ios, void *p) in delete_done() argument
1458 ore_put_io_state(ios); in delete_done()
1473 struct ore_io_state *ios; in exofs_evict_inode() local
1493 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_evict_inode()
1499 ios->done = delete_done; in exofs_evict_inode()
1500 ios->private = sbi; in exofs_evict_inode()
1502 ret = ore_remove(ios); in exofs_evict_inode()
1505 ore_put_io_state(ios); in exofs_evict_inode()