@@ -1214,10 +1214,6 @@ static loff_t iomap_swapfile_activate_actor(struct inode *inode, loff_t pos,
struct iomap_swapfile_info *isi = data;
int error;
- /* Skip holes. */
- if (iomap->type == IOMAP_HOLE)
- goto out;
-
/* Only real or unwritten extents. */
if ((iomap->type != IOMAP_MAPPED && iomap->type != IOMAP_UNWRITTEN) ||
iomap->addr == IOMAP_NULL_ADDR) {
@@ -1258,7 +1254,6 @@ static loff_t iomap_swapfile_activate_actor(struct inode *inode, loff_t pos,
return error;
memcpy(&isi->iomap, iomap, sizeof(isi->iomap));
}
-out:
return count;
}