diff options
author | Michal Schmidt <xschmi00@stud.feec.vutbr.cz> | 2005-09-04 00:57:02 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 09:06:17 +0200 |
commit | 56057e1a128a9aab516350500e5b154e70577929 (patch) | |
tree | 68f323a6e919d96dad59471decb3bea3ec6a36fc /Documentation/power/swsusp-dmcrypt.txt | |
parent | [PATCH] swsusp: prevent disks from spinning down and up (diff) | |
download | linux-56057e1a128a9aab516350500e5b154e70577929.tar.xz linux-56057e1a128a9aab516350500e5b154e70577929.zip |
[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 <xschmi00@stud.feec.vutbr.cz>
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation/power/swsusp-dmcrypt.txt')
0 files changed, 0 insertions, 0 deletions