fix address argument again

This commit is contained in:
Heikki Linnakangas
2025-05-21 01:33:43 +03:00
parent c8541ad29f
commit 01abd4afc5

View File

@@ -1344,8 +1344,8 @@ lfc_readv_select(NRelFileInfo rinfo, ForkNumber forkNum, BlockNumber blkno,
{
if (!BITMAP_ISSET(chunk_mask, i))
continue;
Assert(iov[first_block_in_chunk_read + i].iov_len == BLCKSZ);
rc = pread_with_ioctl(iov[first_block_in_chunk_read + i].iov_base, first_read_offset + i);
Assert(iov[i].iov_len == BLCKSZ);
rc = pread_with_ioctl(iov[i].iov_base, first_read_offset + i - first_block_in_chunk_read);
if (rc < 0 && errno == ENOENT)
{
/* The kernel module evicted the page */