Lines Matching refs:iomap
15 struct iomap iomap; /* accumulated iomap */ member
32 struct iomap *iomap = &isi->iomap; in iomap_swapfile_add_extent() local
48 first_ppage = ALIGN(iomap->addr, PAGE_SIZE) >> PAGE_SHIFT; in iomap_swapfile_add_extent()
49 next_ppage = ALIGN_DOWN(iomap->addr + iomap->length, PAGE_SIZE) >> in iomap_swapfile_add_extent()
64 if (iomap->offset == 0) in iomap_swapfile_add_extent()
98 struct iomap *iomap, struct iomap_swapfile_info *isi) in iomap_swapfile_iter() argument
100 switch (iomap->type) { in iomap_swapfile_iter()
113 if (iomap->flags & IOMAP_F_DIRTY) in iomap_swapfile_iter()
115 if (iomap->flags & IOMAP_F_SHARED) in iomap_swapfile_iter()
119 if (iomap->bdev != isi->sis->bdev) in iomap_swapfile_iter()
122 if (isi->iomap.length == 0) { in iomap_swapfile_iter()
124 memcpy(&isi->iomap, iomap, sizeof(isi->iomap)); in iomap_swapfile_iter()
125 } else if (isi->iomap.addr + isi->iomap.length == iomap->addr) { in iomap_swapfile_iter()
127 isi->iomap.length += iomap->length; in iomap_swapfile_iter()
133 memcpy(&isi->iomap, iomap, sizeof(isi->iomap)); in iomap_swapfile_iter()
169 iter.processed = iomap_swapfile_iter(&iter, &iter.iomap, &isi); in iomap_swapfile_activate()
173 if (isi.iomap.length) { in iomap_swapfile_activate()