Lines Matching defs:offset

102 	 * per-block uptodate status and adjust the offset and length if needed
478 iomap_invalidatepage(struct page *page, unsigned int offset, unsigned int len)
480 trace_iomap_invalidatepage(page->mapping->host, offset, len);
486 if (offset == 0 && len == PAGE_SIZE) {
599 BUG_ON(pos + len > iomap->offset + iomap->length);
601 BUG_ON(pos + len > srcmap->offset + srcmap->length);
759 unsigned long offset; /* Offset into pagecache page */
763 offset = offset_in_page(pos);
764 bytes = min_t(unsigned long, PAGE_SIZE - offset,
793 copied = iov_iter_copy_from_user_atomic(page, i, offset, bytes);
810 bytes = min_t(unsigned long, PAGE_SIZE - offset,
859 unsigned long offset = offset_in_page(pos);
860 unsigned long bytes = min_t(loff_t, PAGE_SIZE - offset, length);
909 unsigned offset = offset_in_page(pos);
910 unsigned bytes = min_t(u64, PAGE_SIZE - offset, length);
916 zero_user(page, offset, bytes);
1013 loff_t offset;
1022 offset = page_offset(page);
1024 ret = iomap_apply(inode, offset, length,
1029 offset += ret;
1071 loff_t offset = ioend->io_offset;
1097 "%s: writeback error on inode %lu, offset %lld, sector %llu",
1098 inode->i_sb->s_id, inode->i_ino, offset, start);
1221 loff_t offset, sector_t sector, struct writeback_control *wbc)
1239 ioend->io_offset = offset;
1270 iomap_can_add_to_ioend(struct iomap_writepage_ctx *wpc, loff_t offset,
1278 if (offset != wpc->ioend->io_offset + wpc->ioend->io_size)
1290 iomap_add_to_ioend(struct inode *inode, loff_t offset, struct page *page,
1294 sector_t sector = iomap_sector(&wpc->iomap, offset);
1296 unsigned poff = offset & (PAGE_SIZE - 1);
1299 if (!wpc->ioend || !iomap_can_add_to_ioend(wpc, offset, sector)) {
1302 wpc->ioend = iomap_alloc_ioend(inode, wpc, offset, sector, wbc);
1346 u64 file_offset; /* file offset of page */
1445 loff_t offset;
1467 * to the highest offset that this page should represent.
1476 offset = i_size_read(inode);
1477 end_index = offset >> PAGE_SHIFT;
1492 unsigned offset_into_page = offset & (PAGE_SIZE - 1);
1501 * if the given offset is greater than 16TB on 32-bit system
1509 * offset is just equal to the EOF.
1526 end_offset = offset;