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()
630 struct ore_io_state *ios; in write_exec() local
637 BUG_ON(pcol->ios); in write_exec()
640 pcol->length, &pcol->ios); in write_exec()
653 ios = pcol->ios; in write_exec()
654 ios->pages = pcol_copy->pages; in write_exec()
655 ios->done = writepages_done; in write_exec()
656 ios->r4w = &_r4w_op; in write_exec()
657 ios->private = pcol_copy; in write_exec()
662 ret = _maybe_not_all_in_one_io(ios, pcol_copy, pcol); in write_exec()
667 pcol->inode->i_ino, _LLU(ios->offset), _LLU(ios->length)); in write_exec()
669 ret = ore_write(ios); in write_exec()
1079 struct ore_io_state *ios; in exofs_get_inode() local
1083 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_get_inode()
1092 ios->in_attr = attrs; in exofs_get_inode()
1093 ios->in_attr_len = ARRAY_SIZE(attrs); in exofs_get_inode()
1095 ret = ore_read(ios); in exofs_get_inode()
1108 ret = extract_attr_from_ios(ios, &attrs[0]); in exofs_get_inode()
1116 ret = extract_attr_from_ios(ios, &attrs[1]); in exofs_get_inode()
1131 ret = extract_attr_from_ios(ios, &attrs[2]); in exofs_get_inode()
1147 ore_put_io_state(ios); in exofs_get_inode()
1265 static void create_done(struct ore_io_state *ios, void *p) in create_done() argument
1272 ret = ore_check_io(ios, NULL); in create_done()
1273 ore_put_io_state(ios); in create_done()
1303 struct ore_io_state *ios; in exofs_new_inode() local
1331 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_new_inode()
1337 ios->done = create_done; in exofs_new_inode()
1338 ios->private = inode; in exofs_new_inode()
1340 ret = ore_create(ios); in exofs_new_inode()
1342 ore_put_io_state(ios); in exofs_new_inode()
1361 static void updatei_done(struct ore_io_state *ios, void *p) in updatei_done() argument
1365 ore_put_io_state(ios); in updatei_done()
1381 struct ore_io_state *ios; in exofs_update_inode() local
1420 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_update_inode()
1428 ios->out_attr_len = 1; in exofs_update_inode()
1429 ios->out_attr = &attr; in exofs_update_inode()
1435 ios->done = updatei_done; in exofs_update_inode()
1436 ios->private = args; in exofs_update_inode()
1439 ret = ore_write(ios); in exofs_update_inode()
1445 ore_put_io_state(ios); in exofs_update_inode()
1464 static void delete_done(struct ore_io_state *ios, void *p) in delete_done() argument
1468 ore_put_io_state(ios); in delete_done()
1483 struct ore_io_state *ios; in exofs_evict_inode() local
1503 ret = ore_get_io_state(&sbi->layout, &oi->oc, &ios); in exofs_evict_inode()
1509 ios->done = delete_done; in exofs_evict_inode()
1510 ios->private = sbi; in exofs_evict_inode()
1512 ret = ore_remove(ios); in exofs_evict_inode()
1515 ore_put_io_state(ios); in exofs_evict_inode()