xref: /linux/fs/iomap/internal.h (revision 7fc2cd2e4b398c57c9cf961cfea05eadbf34c05c)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _IOMAP_INTERNAL_H
3 #define _IOMAP_INTERNAL_H 1
4 
5 #define IOEND_BATCH_SIZE	4096
6 
7 u32 iomap_finish_ioend_direct(struct iomap_ioend *ioend);
8 
9 #ifdef CONFIG_BLOCK
10 int iomap_bio_read_folio_range_sync(const struct iomap_iter *iter,
11 		struct folio *folio, loff_t pos, size_t len);
12 #else
13 static inline int iomap_bio_read_folio_range_sync(const struct iomap_iter *iter,
14 		struct folio *folio, loff_t pos, size_t len)
15 {
16 	WARN_ON_ONCE(1);
17 	return -EIO;
18 }
19 #endif /* CONFIG_BLOCK */
20 
21 #endif /* _IOMAP_INTERNAL_H */
22