Skip to content
Commit 56057e1a authored by Michal Schmidt's avatar Michal Schmidt Committed by Linus Torvalds
Browse files

[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: default avatarMichal Schmidt <xschmi00@stud.feec.vutbr.cz>
Signed-off-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 46dacba5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment