From: Johannes Weiner Date: Tue, 22 Sep 2009 00:01:48 +0000 (-0700) Subject: mm: perform non-atomic test-clear of PG_mlocked on free X-Git-Tag: v2.6.32-rc1~563 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=451ea25da71590361c71bf3044c55b870a887d53;p=pandora-kernel.git mm: perform non-atomic test-clear of PG_mlocked on free By the time PG_mlocked is cleared in the page freeing path, nobody else is looking at our page->flags anymore. It is thus safe to make the test-and-clear non-atomic and thereby removing an unnecessary and expensive operation from a hotpath. Signed-off-by: Johannes Weiner Reviewed-by: Christoph Lameter Reviewed-by: KOSAKI Motohiro Cc: Christoph Lameter Cc: Mel Gorman Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed