mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 17:32:43 +00:00
Correct a case in the ffs_getpages where a page is not found in
a sparse file and the page is zeroed but not set valid, clean.
This commit is contained in:
parent
ab746f65c1
commit
60c7a2cd4e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10597
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ufs_readwrite.c 8.7 (Berkeley) 1/21/94
|
||||
* $Id: ufs_readwrite.c,v 1.10 1995/08/25 19:40:32 bde Exp $
|
||||
* $Id: ufs_readwrite.c,v 1.11 1995/09/06 05:39:28 dyson Exp $
|
||||
*/
|
||||
|
||||
#ifdef LFS_READWRITE
|
||||
@ -370,6 +370,8 @@ ffs_getpages(ap)
|
||||
if (reqblkno == -1) {
|
||||
if ((ap->a_m[ap->a_reqpage]->flags & PG_ZERO) == 0)
|
||||
vm_page_zero_fill(ap->a_m[ap->a_reqpage]);
|
||||
ap->a_m[ap->a_reqpage]->dirty = 0;
|
||||
ap->a_m[ap->a_reqpage]->valid = VM_PAGE_BITS_ALL;
|
||||
return VM_PAGER_OK;
|
||||
} else {
|
||||
return VM_PAGER_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user