Skip to contentSkip to conversation

+ zsmalloc-fixup-trivial-zs-size-classes-value-in-comments.patch added to -mm tree

PATCH [email protected] 1 participant 1 message May 15, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + zsmalloc-fixup-trivial-zs-size-classes-value-in-comments.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Thu, 15 May 2014 14:28:01 -0700

The patch titled
Subject: zsmalloc: fixup trivial zs size classes value in comments
has been added to the -mm tree. Its filename is
zsmalloc-fixup-trivial-zs-size-classes-value-in-comments.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/zsmalloc-fixup-trivial-zs-size-classes-value-in-comments.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/zsmalloc-fixup-trivial-zs-size-classes-value-in-comments.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Weijie Yang <[email protected]>
Subject: zsmalloc: fixup trivial zs size classes value in comments

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.

---

 mm/zsmalloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/zsmalloc.c renamed from mm/zsmalloc.c~zsmalloc-fixup-trivial-zs-size-classes-value-in-comments +1 -1
diff -puN mm/zsmalloc.c~zsmalloc-fixup-trivial-zs-size-classes-value-in-comments mm/zsmalloc.c
@@ -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

_

Patches currently in -mm which might be from [email protected] are

zram-correct-offset-usage-in-zram_bio_discard.patch zsmalloc-fixup-trivial-zs-size-classes-value-in-comments.patch