Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P214
Masterwork From Distant Lands
Active
Public
Actions
Authored by
cem
on Aug 21 2018, 9:48 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F3667215: Masterwork From Distant Lands
Aug 21 2018, 9:48 PM
2018-08-21 21:48:26 (UTC+0)
Subscribers
None
Index: vfs_bio.c
===================================================================
--- vfs_bio.c (revision 338036)
+++ vfs_bio.c (working copy)
@@ -4188,6 +4188,7 @@
}
return;
}
+ newbsize = round_page(newbsize);
vm_hold_free_pages(bp, newbsize);
bufspace_adjust(bp, newbsize);
}
@@ -4218,6 +4219,7 @@
bufmallocadjust(bp, newbsize);
return;
}
+ newbsize = round_page(newbsize);
/*
* If the buffer is growing on its other-than-first
@@ -4272,8 +4274,6 @@
newbsize = roundup2(size, DEV_BSIZE);
if ((bp->b_flags & B_VMIO) == 0) {
- if ((bp->b_flags & B_MALLOC) == 0)
- newbsize = round_page(newbsize);
/*
* Just get anonymous memory from the kernel. Don't
* mess with B_CACHE.
Event Timeline
cem
edited the content of this paste.
(Show Details)
Aug 21 2018, 9:48 PM
2018-08-21 21:48:26 (UTC+0)
cem
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Log In to Comment