FreeBSD: Remove an incorrect assertion in zfs_getpages()
commit0e020bf3e12d4993d8720292f15a4fead45cd597
authorMark Johnston <markjdb@gmail.com>
Wed, 4 Dec 2024 19:24:50 +0000 (4 14:24 -0500)
committerGitHub <noreply@github.com>
Wed, 4 Dec 2024 19:24:50 +0000 (4 14:24 -0500)
treed8849ddd323125af13725d6a9f79d3443ccd4929
parent4b4e346b9f24c8a315af5a44d540080a449167ea
FreeBSD: Remove an incorrect assertion in zfs_getpages()

The pages in the array may become valid after this initial unbusying,
so the assertion only holds during the first iteration of the outer
loop.

Later in zfs_getpages(), the dmu_read_pages() loop handles already-valid
pages.  Just drop the assertion, it's not terribly useful.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reported-by: Peter Holm <pho@FreeBSD.org>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Sponsored-by: Klara, Inc.
Closes #16810
Closes #16834
module/os/freebsd/zfs/zfs_vnops_os.c