Lines Matching refs:lastoff
14 * Seek for SEEK_DATA / SEEK_HOLE within @page, starting at @lastoff.
15 * Returns true if found and updates @lastoff to the offset in file.
18 page_seek_hole_data(struct inode *inode, struct page *page, loff_t *lastoff,
26 if (WARN_ON_ONCE(*lastoff >= poff + PAGE_SIZE))
29 if (*lastoff < poff) {
36 *lastoff = poff;
50 if (offset_in_page(*lastoff) >= off + bsize)
56 *lastoff = poff + off + bsize;
79 loff_t lastoff = offset;
98 if (page_seek_hole_data(inode, page, &lastoff, whence))
100 lastoff = page_offset(page) + PAGE_SIZE;
105 /* When no page at lastoff and we are not done, we found a hole. */
110 if (lastoff < offset + length)
113 lastoff = -ENOENT;
116 return lastoff;