]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Jan 2010 00:53:55 +0000 (16:53 -0800)
commitc4d3af80625bbbe19cdb29d0001331e8eb8820eb
tree23dad05636e88a743755bfd3e7a5dad4ef5e49e0
parent03a57074e52d26d45761a22cf71b6a2be57433e2
page allocator: update NR_FREE_PAGES only when necessary

commit 12a9007f (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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c