FreeBSD Bugzilla – Attachment 190246 Details for
Bug 225586
ftruncate+mmap+fsync fails for small maps
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
For partially dirty page, only clear dirty bits for completely invalid device blocks.
1.patch (text/plain), 530 bytes, created by
Konstantin Belousov
on 2018-02-01 15:25:02 UTC
(
hide
)
Description:
For partially dirty page, only clear dirty bits for completely invalid device blocks.
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2018-02-01 15:25:02 UTC
Size:
530 bytes
patch
obsolete
>diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c >index cd5a749d4f9..96689724381 100644 >--- a/sys/vm/vnode_pager.c >+++ b/sys/vm/vnode_pager.c >@@ -1266,6 +1266,8 @@ vnode_pager_generic_putpages(struct vnode *vp, vm_page_t *ma, int bytecount, > maxsize = object->un_pager.vnp.vnp_size - poffset; > ncount = btoc(maxsize); > if ((pgoff = (int)maxsize & PAGE_MASK) != 0) { >+ pgoff = roundup2(pgoff, DEV_BSIZE); >+ > /* > * If the object is locked and the following > * conditions hold, then the page's dirty
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 225586
:
190220
| 190246