]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfs: fix assert in FreeBSD-specific dmu_read_pages
authorMartin Matuska <mm@FreeBSD.org>
Wed, 3 Mar 2021 01:32:59 +0000 (02:32 +0100)
committerMartin Matuska <mm@FreeBSD.org>
Sat, 6 Mar 2021 20:23:22 +0000 (21:23 +0100)
commitd2faf2e6b2d43eafbae27a6d4909984c260e2631
tree9c78dc350bbc5b368e413425c9e3d611953325a9
parente33a2b2905a886e98ab4b8f8d83ed30f6d8bb254
zfs: fix assert in FreeBSD-specific dmu_read_pages

From the openzfs 2e160dee9 commit message:
  The function has three similar pieces of code: for read-behind pages,
  requested pages and read-ahead pages.  All three pieces had an
  assert to ensure that the page is not mapped.  Later the assert was
  relaxed to require that the page is not mapped for writing.  But that
  was done in two places out of three.  This change fixes the third piece,
  read-ahead.

Obtained from: openzfs/zfs@2e160dee97a4badbc318561f76ea56451c916d2f
Approved by: re (delphij)

(cherry picked from commit 19049a2b2bd7119ef7b34102513f6bbfdf9ff862)
sys/contrib/openzfs/module/os/freebsd/zfs/dmu_os.c