/[pkg-src]/trunk/kernel26-magellan/patches-2.6.16-r12/0034-2.6.16-mm-swap-prefetch-fix-lowmem-reserve-calc.patch |
Contents of /trunk/kernel26-magellan/patches-2.6.16-r12/0034-2.6.16-mm-swap-prefetch-fix-lowmem-reserve-calc.patch
Parent Directory | Revision Log
Revision 72 -
(show annotations)
(download)
Mon Jun 5 09:25:38 2006 UTC (18 years, 3 months ago) by niro
File size: 3555 byte(s)
Mon Jun 5 09:25:38 2006 UTC (18 years, 3 months ago) by niro
File size: 3555 byte(s)
ver bump to 2.6.16-r12: - updated to linux-2.6.16.19 - updated to ck11
1 | From akpm@osdl.org Thu May 18 19:16:56 2006 |
2 | Return-Path: <akpm@osdl.org> |
3 | X-Original-To: kernel@kolivas.org |
4 | Delivered-To: kernel@kolivas.org |
5 | Received: from bhhdoa.org.au (bhhdoa.org.au [65.98.99.88]) |
6 | by mail.kolivas.org (Postfix) with ESMTP id 923EDC60BD |
7 | for <kernel@kolivas.org>; Thu, 18 May 2006 19:16:59 +1000 (EST) |
8 | Received: from smtp.osdl.org (smtp.osdl.org [65.172.181.4]) |
9 | by bhhdoa.org.au (Postfix) with ESMTP id 12640516D4 |
10 | for <kernel@kolivas.org>; Thu, 18 May 2006 17:13:16 +1000 (EST) |
11 | Received: from shell0.pdx.osdl.net (fw.osdl.org [65.172.181.6]) |
12 | by smtp.osdl.org (8.12.8/8.12.8) with ESMTP id k4I9GutH003822 |
13 | (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); |
14 | Thu, 18 May 2006 02:16:56 -0700 |
15 | Received: from localhost.localdomain (shell0.pdx.osdl.net [10.9.0.31]) |
16 | by shell0.pdx.osdl.net (8.13.1/8.11.6) with ESMTP id k4I9GtSc014558; |
17 | Thu, 18 May 2006 02:16:55 -0700 |
18 | Message-Id: <200605180916.k4I9GtSc014558@shell0.pdx.osdl.net> |
19 | Subject: + mm-swap-prefetch-fix-lowmem-reserve-calc.patch added to -mm tree |
20 | To: kernel@kolivas.org, |
21 | mm-commits@vger.kernel.org |
22 | From: akpm@osdl.org |
23 | Date: Thu, 18 May 2006 02:16:56 -0700 |
24 | X-Spam-Status: No, hits=1.088 required=5 tests=NO_REAL_NAME |
25 | X-Spam-Level: * |
26 | X-Spam-Checker-Version: SpamAssassin 2.63-osdl_revision__1.74__ |
27 | X-MIMEDefang-Filter: osdl$Revision: 1.1 $ |
28 | X-Scanned-By: MIMEDefang 2.36 |
29 | X-DSPAM-Result: Whitelisted |
30 | X-DSPAM-Confidence: 0.9997 |
31 | X-DSPAM-Probability: 0.0000 |
32 | X-DSPAM-Signature: 446c3b8c98977849040896 |
33 | X-DSPAM-Factors: 27, |
34 | prefetch+static, 0.00010, |
35 | if+free, 0.00010, |
36 | deletion+diff, 0.00010, |
37 | sched+add, 0.00010, |
38 | sched+add, 0.00010, |
39 | weighted+cpu, 0.00010, |
40 | devel+mm, 0.00010, |
41 | HIGHMEM, 0.00010, |
42 | add+above, 0.00010, |
43 | sched+store, 0.00010, |
44 | prevent+high, 0.00010, |
45 | shrinker, 0.00010, |
46 | high+load, 0.00010, |
47 | free+limits, 0.00010, |
48 | free+limits, 0.00010, |
49 | sched+batch, 0.00010, |
50 | lowfree, 0.00010, |
51 | lowfree, 0.00010, |
52 | ns+highfree, 0.00010, |
53 | ns+highfree, 0.00010, |
54 | lowfree+idx, 0.00010, |
55 | lowfree+idx, 0.00010, |
56 | implement+smpnice, 0.00010, |
57 | high+if, 0.00010, |
58 | c31, 0.00010, |
59 | suppressing, 0.00010, |
60 | sched+prevent, 0.00010 |
61 | X-UID: 19445 |
62 | X-Length: 4199 |
63 | Status: RO |
64 | X-Status: OC |
65 | X-KMail-EncryptionState: |
66 | X-KMail-SignatureState: |
67 | X-KMail-MDN-Sent: |
68 | |
69 | |
70 | The patch titled |
71 | |
72 | swap prefetch fix lowmem reserve calc |
73 | |
74 | has been added to the -mm tree. Its filename is |
75 | |
76 | mm-swap-prefetch-fix-lowmem-reserve-calc.patch |
77 | |
78 | See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find |
79 | out what to do about this |
80 | |
81 | ------------------------------------------------------ |
82 | Subject: swap prefetch fix lowmem reserve calc |
83 | From: Con Kolivas <kernel@kolivas.org> |
84 | |
85 | |
86 | Correct the effect lowmem_reserve has on calculation of free limits in |
87 | swap_prefetch. |
88 | |
89 | Signed-off-by: Con Kolivas <kernel@kolivas.org> |
90 | Signed-off-by: Andrew Morton <akpm@osdl.org> |
91 | --- |
92 | |
93 | mm/swap_prefetch.c | 3 ++- |
94 | 1 files changed, 2 insertions(+), 1 deletion(-) |
95 | |
96 | Index: linux-2.6.16-ck11/mm/swap_prefetch.c |
97 | =================================================================== |
98 | --- linux-2.6.16-ck11.orig/mm/swap_prefetch.c 2006-05-21 12:24:07.000000000 +1000 |
99 | +++ linux-2.6.16-ck11/mm/swap_prefetch.c 2006-05-21 12:24:17.000000000 +1000 |
100 | @@ -287,7 +287,8 @@ static void examine_free_limits(void) |
101 | |
102 | ns = &sp_stat.node[z->zone_pgdat->node_id]; |
103 | idx = zone_idx(z); |
104 | - ns->lowfree[idx] = z->pages_high * 3 + z->lowmem_reserve[idx]; |
105 | + ns->lowfree[idx] = z->pages_high * 3 + |
106 | + z->lowmem_reserve[ZONE_HIGHMEM]; |
107 | ns->highfree[idx] = ns->lowfree[idx] + z->pages_high; |
108 | |
109 | if (z->free_pages > ns->highfree[idx]) { |