diff options
Diffstat (limited to 'fs/iomap/internal.h')
| -rw-r--r-- | fs/iomap/internal.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/fs/iomap/internal.h b/fs/iomap/internal.h new file mode 100644 index 000000000000..3a4e4aad2bd1 --- /dev/null +++ b/fs/iomap/internal.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _IOMAP_INTERNAL_H +#define _IOMAP_INTERNAL_H 1 + +#define IOEND_BATCH_SIZE 4096 + +u32 iomap_finish_ioend_direct(struct iomap_ioend *ioend); + +#ifdef CONFIG_BLOCK +int iomap_bio_read_folio_range_sync(const struct iomap_iter *iter, + struct folio *folio, loff_t pos, size_t len); +#else +static inline int iomap_bio_read_folio_range_sync(const struct iomap_iter *iter, + struct folio *folio, loff_t pos, size_t len) +{ + WARN_ON_ONCE(1); + return -EIO; +} +#endif /* CONFIG_BLOCK */ + +#endif /* _IOMAP_INTERNAL_H */ |
