From: Christoph Lameter Date: Sun, 6 May 2007 21:49:40 +0000 (-0700) Subject: mm: optimize compound_head() by avoiding a shared page flag X-Git-Tag: v2.6.22-rc1~963 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d7779538f765963ced45a3fa4bed7ba8d2c277d;p=pandora-kernel.git mm: optimize compound_head() by avoiding a shared page flag The patch adds PageTail(page) and PageHead(page) to check if a page is the head or the tail of a compound page. This is done by masking the two bits describing the state of a compound page and then comparing them. So one comparision and a branch instead of two bit checks and two branches. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed