xref: /linux/fs/iomap/internal.h (revision b61104e7a6349bd2c2b3e2fb3260d87f15eda8f4)
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