Lines Matching refs:iomap
9 #include <linux/iomap.h>
15 struct iomap iomap; /* accumulated iomap */
32 struct iomap *iomap = &isi->iomap;
48 first_ppage = ALIGN(iomap->addr, PAGE_SIZE) >> PAGE_SHIFT;
49 next_ppage = ALIGN_DOWN(iomap->addr + iomap->length, PAGE_SIZE) >>
64 if (iomap->offset == 0)
98 struct iomap *iomap, struct iomap_swapfile_info *isi)
100 switch (iomap->type) {
113 if (iomap->flags & IOMAP_F_DIRTY)
115 if (iomap->flags & IOMAP_F_SHARED)
119 if (iomap->bdev != isi->sis->bdev)
122 if (isi->iomap.length == 0) {
124 memcpy(&isi->iomap, iomap, sizeof(isi->iomap));
125 } else if (isi->iomap.addr + isi->iomap.length == iomap->addr) {
127 isi->iomap.length += iomap->length;
129 /* Otherwise, add the retained iomap and store this one. */
133 memcpy(&isi->iomap, iomap, sizeof(isi->iomap));
169 iter.processed = iomap_swapfile_iter(&iter, &iter.iomap, &isi);
173 if (isi.iomap.length) {