diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iomap.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 19a07de28212..4bd87294219a 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h | |||
| @@ -106,4 +106,15 @@ typedef int (iomap_dio_end_io_t)(struct kiocb *iocb, ssize_t ret, | |||
| 106 | ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, | 106 | ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, |
| 107 | const struct iomap_ops *ops, iomap_dio_end_io_t end_io); | 107 | const struct iomap_ops *ops, iomap_dio_end_io_t end_io); |
| 108 | 108 | ||
| 109 | #ifdef CONFIG_SWAP | ||
| 110 | struct file; | ||
| 111 | struct swap_info_struct; | ||
| 112 | |||
| 113 | int iomap_swapfile_activate(struct swap_info_struct *sis, | ||
| 114 | struct file *swap_file, sector_t *pagespan, | ||
| 115 | const struct iomap_ops *ops); | ||
| 116 | #else | ||
| 117 | # define iomap_swapfile_activate(sis, swapfile, pagespan, ops) (-EIO) | ||
| 118 | #endif /* CONFIG_SWAP */ | ||
| 119 | |||
| 109 | #endif /* LINUX_IOMAP_H */ | 120 | #endif /* LINUX_IOMAP_H */ |
