Unverified Commit 3178f046 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15127 iomap: avoid avoid truncating 64-bit offset to 32 bits

parents e804018e d4ac5b5c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1191,11 +1191,11 @@ xfs_iomap_write_delalloc_scan(
			 * the end of this data range, not the end of the folio.
			 */
			*punch_start_byte = min_t(loff_t, end_byte,
				(page->index + 1) << PAGE_SHIFT);
				page_offset(page) + PAGE_SIZE);
		}

		/* move offset to start of next folio in range */
		start_byte = (page->index + 1) << PAGE_SHIFT;
		start_byte = page_offset(page) + PAGE_SIZE;
		unlock_page(page);
		put_page(page);
	}