]> git.karo-electronics.de Git - karo-tx-linux.git/commit
page allocator: update NR_FREE_PAGES only when necessary
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Sat, 16 Jan 2010 01:01:18 +0000 (17:01 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:55:33 +0000 (15:55 -0700)
commit841e7fc166701dcd2eec3c470492e3ee1c0d0b92
treed38cbafb9d330b08458326b33075a6c927590a16
parent48dd705726e90a55b544ee1666e94501058e47df
page allocator: update NR_FREE_PAGES only when necessary

commit 6ccf80eb15ccaca4d3f1ab5162b9ded5eecd9971 upstream.

commit f2260e6b (page allocator: update NR_FREE_PAGES only as necessary)
made one minor regression.  if __rmqueue() was failed, NR_FREE_PAGES stat
go wrong.  this patch fixes it.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Reported-by: Huang Shijie <shijie8@gmail.com>
Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/page_alloc.c