mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Weijie Yang <weijie.yang@samsung.com>
To: "'Minchan Kim'" <minchan@kernel.org>
Cc: "'Andrew Morton'" <akpm@linux-foundation.org>,
	"'Nitin Gupta'" <ngupta@vflare.org>,
	"'Bob Liu'" <bob.liu@oracle.com>,
	"'linux-kernel'" <linux-kernel@vger.kernel.org>,
	"'Weijie Yang'" <weijie.yang.kh@gmail.com>
Subject: [PATCH] zsmalloc: fixup trivial zs size classes value in comments
Date: Thu, 15 May 2014 16:38:31 +0800	[thread overview]
Message-ID: <000201cf7019$3e2c7cf0$ba8576d0$%yang@samsung.com> (raw)

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 fixup this trivial issue in the comments.

Signed-off-by: Weijie Yang <weijie.yang@samsung.com>
---
 mm/zsmalloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 36b4591..04a6000 100644
--- a/mm/zsmalloc.c
+++ b/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
-- 
1.7.10.4



                 reply	other threads:[~2014-05-15  8:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000201cf7019$3e2c7cf0$ba8576d0$%yang@samsung.com' \
    --to=weijie.yang@samsung.com \
    --cc=akpm@linux-foundation.org \
    --cc=bob.liu@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=minchan@kernel.org \
    --cc=ngupta@vflare.org \
    --cc=weijie.yang.kh@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®