Skip to content

Commit

Permalink
zsmalloc: fixup trivial zs size classes value in comments
Browse files Browse the repository at this point in the history
According to calculation, ZS_SIZE_CLASSES value is 255 on systems with 4K
page size, not 254.  The old value may forget count the ZS_MIN_ALLOC_SIZE
in.

This patch fixes this trivial issue in the comments.

Signed-off-by: Weijie Yang <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Weijie Yang authored and torvalds committed Jun 4, 2014
1 parent 50417c5 commit 7eb5251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/zsmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
#define ZS_MAX_ALLOC_SIZE PAGE_SIZE

/*
* On systems with 4K page size, this gives 254 size classes! There is a
* On systems with 4K page size, this gives 255 size classes! There is a
* trader-off here:
* - Large number of size classes is potentially wasteful as free page are
* spread across these classes
Expand Down

0 comments on commit 7eb5251

Please sign in to comment.