]> 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>
Wed, 3 Mar 2021 01:32:59 +0000 (02:32 +0100)
commit19049a2b2bd7119ef7b34102513f6bbfdf9ff862
treedd871a8fe8c0f2d685d3bdfefddc5ce9ea929410
parentc7069063144395b025c0ef178431eb2cafdbe1ca
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
MFS after: 3 days

(direct commit)
sys/contrib/openzfs/module/os/freebsd/zfs/dmu_os.c