Lines Matching refs:iter
13 static loff_t iomap_seek_hole_iter(const struct iomap_iter *iter, in iomap_seek_hole_iter() argument
16 loff_t length = iomap_length(iter); in iomap_seek_hole_iter()
18 switch (iter->iomap.type) { in iomap_seek_hole_iter()
20 *hole_pos = mapping_seek_hole_data(iter->inode->i_mapping, in iomap_seek_hole_iter()
21 iter->pos, iter->pos + length, SEEK_HOLE); in iomap_seek_hole_iter()
22 if (*hole_pos == iter->pos + length) in iomap_seek_hole_iter()
26 *hole_pos = iter->pos; in iomap_seek_hole_iter()
37 struct iomap_iter iter = { in iomap_seek_hole() local
48 iter.len = size - pos; in iomap_seek_hole()
49 while ((ret = iomap_iter(&iter, ops)) > 0) in iomap_seek_hole()
50 iter.processed = iomap_seek_hole_iter(&iter, &pos); in iomap_seek_hole()
53 if (iter.len) /* found hole before EOF */ in iomap_seek_hole()
59 static loff_t iomap_seek_data_iter(const struct iomap_iter *iter, in iomap_seek_data_iter() argument
62 loff_t length = iomap_length(iter); in iomap_seek_data_iter()
64 switch (iter->iomap.type) { in iomap_seek_data_iter()
68 *hole_pos = mapping_seek_hole_data(iter->inode->i_mapping, in iomap_seek_data_iter()
69 iter->pos, iter->pos + length, SEEK_DATA); in iomap_seek_data_iter()
74 *hole_pos = iter->pos; in iomap_seek_data_iter()
83 struct iomap_iter iter = { in iomap_seek_data() local
94 iter.len = size - pos; in iomap_seek_data()
95 while ((ret = iomap_iter(&iter, ops)) > 0) in iomap_seek_data()
96 iter.processed = iomap_seek_data_iter(&iter, &pos); in iomap_seek_data()
99 if (iter.len) /* found data before EOF */ in iomap_seek_data()