diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2015-05-20 23:15:56 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2015-05-20 23:15:56 +0000 |
commit | 2c20bd8b99c0affdf62fdb40a23f61d2db1f2b57 (patch) | |
tree | 11fb05d292d9696bc0af5b15c3d0aab5f1e952a2 /sys/vm/vm_page.c | |
parent | da47499040fc99cbbf5cfe4fcb414225a098c3ec (diff) | |
download | src-2c20bd8b99c0affdf62fdb40a23f61d2db1f2b57.tar.gz src-2c20bd8b99c0affdf62fdb40a23f61d2db1f2b57.zip |
Do grammar fix in the comment to record the right commit message for
r283162.
Fix a cosmetic issue with vm_page_alloc() calling vm_page_free_toq()
with the page not completely satisfying vm_page_free() assertions.
The page is not owned by the object, since insertion failed. But
besides m->object reset to NULL, we should also set VPO_UNMANAGED flag
for consistency.
Reported by: pho
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=283163
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r-- | sys/vm/vm_page.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index ad4457152ddd..b3b36d66e203 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -3154,8 +3154,8 @@ vm_page_zero_invalid(vm_page_t m, boolean_t setvalid) VM_OBJECT_ASSERT_WLOCKED(m->object); /* * Scan the valid bits looking for invalid sections that - * must be zerod. Invalid sub-DEV_BSIZE'd areas ( where the - * valid bit may be set ) have already been zerod by + * must be zeroed. Invalid sub-DEV_BSIZE'd areas ( where the + * valid bit may be set ) have already been zeroed by * vm_page_set_validclean(). */ for (b = i = 0; i <= PAGE_SIZE / DEV_BSIZE; ++i) { |