lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 26 Jan 2007 20:20:36 +0100
From:	Michal Piotrowski <michal.k.k.piotrowski@...il.com>
To:	Christoph Lameter <clameter@....com>
CC:	Michal Piotrowski <michal.k.k.piotrowski@...il.com>,
	linux-kernel@...r.kernel.org, Andrew Morton <akpm@...l.org>,
	"Rafael J. Wysocki" <rjw@...k.pl>, Pavel Machek <pavel@....cz>
Subject: Re: mm snapshot broken-out-2007-01-26-00-36.tar.gz uploaded

Christoph Lameter napisaƂ(a):
> On Fri, 26 Jan 2007, Michal Piotrowski wrote:
> 
>> Please try patches from
>> http://www.stardust.webpages.pl/files/tbf/euridica/mm-snapshot-2007-01-26/
>>
>> http://www.stardust.webpages.pl/files/tbf/euridica/mm-snapshot-2007-01-26/bugs_and_patches.txt
> 
> Ahh. Okay that fixes most of the issues
> 
> 
> ZVC writeback: Fix mm and other issues
> 
> This deals with swap prefetch and various things changed in mm.
> 

Additional fix

Regards,
Michal

--
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/)

Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@...il.com>

--- linux-work-clean/kernel/power/snapshot.c	2007-01-26 16:45:32.000000000 +0100
+++ linux-work/kernel/power/snapshot.c	2007-01-26 20:17:09.000000000 +0100
@@ -591,7 +591,7 @@ static unsigned int count_free_highmem_p

 	for_each_zone(zone)
 		if (populated_zone(zone) && is_highmem(zone))
-			cnt += zone->free_pages;
+			cnt += zone_page_state(zone, NR_FREE_PAGES);

 	return cnt;
 }
@@ -869,7 +869,7 @@ static int enough_free_mem(unsigned int
 	for_each_zone(zone) {
 		meta += snapshot_additional_pages(zone);
 		if (!is_highmem(zone))
-			free += zone->free_pages;
+			free += zone_page_state(zone, NR_FREE_PAGES);
 	}

 	nr_pages += count_pages_for_highmem(nr_highmem);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ