Lines Matching +full:buffered +full:- +full:negative
1 /* SPDX-License-Identifier: GPL-2.0 */
77 #define IOMAP_NULL_ADDR -1ULL /* addr is not valid */
96 return (iomap->addr + pos - iomap->offset) >> SECTOR_SHIFT; in iomap_sector()
104 return iomap->inline_data + pos - iomap->offset; in iomap_inline_data()
114 return iomap->length <= PAGE_SIZE - offset_in_page(iomap->inline_data); in iomap_inline_data_valid()
120 * buffered writes as unbuffered writes will not typically have pages
149 * The actual length is returned in iomap->length.
166 * struct iomap_iter - Iterate through a range of a file
169 * calls to iomap_iter(). Treat as read-only in the body.
173 * iteration, or a negative errno. 0 causes the iteration to stop.
191 * iomap_length - length of the current iomap iteration
198 u64 end = iter->iomap.offset + iter->iomap.length; in iomap_length()
200 if (iter->srcmap.type != IOMAP_HOLE) in iomap_length()
201 end = min(end, iter->srcmap.offset + iter->srcmap.length); in iomap_length()
202 return min(iter->len, end - iter->pos); in iomap_length()
206 * iomap_iter_srcmap - return the source map for the current iomap iteration
212 * map in &i->iomap.
216 if (i->srcmap.type != IOMAP_HOLE) in iomap_iter_srcmap()
217 return &i->srcmap; in iomap_iter_srcmap()
218 return &i->iomap; in iomap_iter_srcmap()
308 * Flags for direct I/O ->end_io:
328 * the caller by returning -EAGAIN. Used to optimize direct I/O writes that
350 # define iomap_swapfile_activate(sis, swapfile, pagespan, ops) (-EIO)