diff options
| author | Michal Schmidt <[email protected]> | 2005-09-03 15:57:02 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2005-09-05 00:06:17 -0700 |
| commit | 56057e1a128a9aab516350500e5b154e70577929 (patch) | |
| tree | 68f323a6e919d96dad59471decb3bea3ec6a36fc /scripts/basic | |
| parent | 46dacba52a19d1414ba249499a48382c16242d99 (diff) | |
[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 <[email protected]>
Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions