projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d02be50
)
mm/zsmalloc.c: fix comment for get_pages_per_zspage
author
Yinghao Xie
<
[email protected]
>
Wed, 15 Apr 2015 23:15:49 +0000
(16:15 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 15 Apr 2015 23:35:21 +0000
(16:35 -0700)
Signed-off-by: Yinghao Xie <
[email protected]
>
Suggested-by: Minchan Kim <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/zsmalloc.c
patch
|
blob
|
history
diff --git
a/mm/zsmalloc.c
b/mm/zsmalloc.c
index 1833fc9e09cb690ff70c84e389eb2fa8f3c477b4..7a48e5568d46068a8ac1d070e908820295d1591c 100644
(file)
--- a/
mm/zsmalloc.c
+++ b/
mm/zsmalloc.c
@@
-731,7
+731,8
@@
out:
* to form a zspage for each size class. This is important
* to reduce wastage due to unusable space left at end of
* each zspage which is given as:
- * wastage = Zp - Zp % size_class
+ * wastage = Zp % class_size
+ * usage = Zp - wastage
* where Zp = zspage size = k * PAGE_SIZE where k = 1, 2, ...
*
* For example, for size class of 3/8 * PAGE_SIZE, we should