From: Michal Schmidt Date: Sat, 3 Sep 2005 22:57:02 +0000 (-0700) Subject: [PATCH] swsusp: simpler calculation of number of pages in PBE list X-Git-Tag: v2.6.14-rc1~832 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56057e1a128a9aab516350500e5b154e70577929;p=pandora-kernel.git [PATCH] swsusp: simpler calculation of number of pages in PBE list The function calc_nr uses an iterative algorithm to calculate the number of pages needed for the image and the pagedir. Exactly the same result can be obtained with a one-line expression. Note that this was even proved correct ;-). Signed-off-by: Michal Schmidt Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed