Page MenuHomeFreeBSD

D20102.diff
No OneTemporary

D20102.diff

Index: head/sys/vm/vm_pageout.c
===================================================================
--- head/sys/vm/vm_pageout.c
+++ head/sys/vm/vm_pageout.c
@@ -928,9 +928,7 @@
{
u_int bit, root, tmp;
- bit = 1u << ((NBBY * sizeof(u_int)) - 2);
- while (bit > num)
- bit >>= 2;
+ bit = num != 0 ? (1u << ((fls(num) - 1) & ~1)) : 0;
root = 0;
while (bit != 0) {
tmp = root + bit;

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 2, 5:14 AM (3 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34586938
Default Alt Text
D20102.diff (393 B)

Event Timeline