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()
1076 struct ore_io_state *ios; in exofs_get_inode() local
1080 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_get_inode()
1089 ios->in_attr = attrs; in exofs_get_inode()
1090 ios->in_attr_len = ARRAY_SIZE(attrs); in exofs_get_inode()
1092 ret = ore_read(ios); in exofs_get_inode()
1105 ret = extract_attr_from_ios(ios, &attrs[0]); in exofs_get_inode()
1113 ret = extract_attr_from_ios(ios, &attrs[1]); in exofs_get_inode()
1128 ret = extract_attr_from_ios(ios, &attrs[2]); in exofs_get_inode()
1144 ore_put_io_state(ios); in exofs_get_inode()
1263 static void create_done(struct ore_io_state *ios, void *p) in create_done() argument
1270 ret = ore_check_io(ios, NULL); in create_done()
1271 ore_put_io_state(ios); in create_done()
1301 struct ore_io_state *ios; in exofs_new_inode() local
1329 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_new_inode()
1335 ios->done = create_done; in exofs_new_inode()
1336 ios->private = inode; in exofs_new_inode()
1338 ret = ore_create(ios); in exofs_new_inode()
1340 ore_put_io_state(ios); in exofs_new_inode()
1359 static void updatei_done(struct ore_io_state *ios, void *p) in updatei_done() argument
1363 ore_put_io_state(ios); in updatei_done()
1379 struct ore_io_state *ios; in exofs_update_inode() local
1418 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_update_inode()
1426 ios->out_attr_len = 1; in exofs_update_inode()
1427 ios->out_attr = &attr; in exofs_update_inode()
1433 ios->done = updatei_done; in exofs_update_inode()
1434 ios->private = args; in exofs_update_inode()
1437 ret = ore_write(ios); in exofs_update_inode()
1443 ore_put_io_state(ios); in exofs_update_inode()
1462 static void delete_done(struct ore_io_state *ios, void *p) in delete_done() argument
1466 ore_put_io_state(ios); in delete_done()
1481 struct ore_io_state *ios; in exofs_evict_inode() local
1501 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_evict_inode()
1507 ios->done = delete_done; in exofs_evict_inode()
1508 ios->private = sbi; in exofs_evict_inode()
1510 ret = ore_remove(ios); in exofs_evict_inode()
1513 ore_put_io_state(ios); in exofs_evict_inode()