Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1436176

Re: [PATCH 6/8] mm/zsmalloc: keep comments consistent with code

Path csiph.com!xmission!feeder.erje.net!1.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Ganesh Mahendran <opensource.ganesh@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 6/8] mm/zsmalloc: keep comments consistent with code
Date Mon, 04 Jul 2016 05:40:01 +0200
Message-ID <rR2TL-tc-13@gated-at.bofh.it> (permalink)
References <rQ0qZ-3gE-3@gated-at.bofh.it> <rQ0qZ-3gE-5@gated-at.bofh.it> <rQZCy-6Z7-13@gated-at.bofh.it>
X-Original-To Minchan Kim <minchan@kernel.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rBsbHQAPnsNJXERfVrWOg8CECsJi0+mY37wcVOXCieo=; b=rZZuoux463VIxToNsvi7A/NpMXgYOvIBNh/cDiOyyUsFHbWVQLHKDT0WtUiKZDCye1 HO9puH82x/LAlbf0vQ/IlUQEAHmoh3bom0941WI74+Q8wo0BFecwxVt5dSN6Y88Ib3Um A62sQdG4RfAPDGARKALLVBOGC+W+8qsUHnxKTdVgiUB/jRCjLwESRbLQ8QOU4ctaYrL6 wM3TT/H3lzEzJ7e3v//a038+PA4UCgXkuFMBM8G/wi54v1ULHJRiyXaMwM6RUsW3h5Cj NZpfYbqi/Nt7iB72ZlCaqqKdYjO9aRt1NEreWATkFAxNRPPfqbkmwLfz3wgPYeHTw/LR ayzA==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rBsbHQAPnsNJXERfVrWOg8CECsJi0+mY37wcVOXCieo=; b=lAHJHphRiCNYI1QzC690hsP1n5+4MksCtKzne6zZtouy48c2QDKTCTtmAOA6DEdQqe R+UQ0eS0TCd8SODmrQ1gSt11vKl4b2Nj6gRhjOPhYUz3EvNoOVsO8ShcHkuTU0iALIp8 WOkiysbIs+ab+/TO09pbymFOWhqSeJH+eDkFODo05b2SzFajjIX4Z9sMLnR9xkOvSlkF Paq8Dowca0IjCaDAWkevM/MQ+mW4m/KacgE1nt0jzm74MU2YXt/PYCjF+nWLFM70C4uz xlitXORGr/lFYsxhQyNJ2If/7/2KS3qWk020exACaro6Xi4ajyzSEzotDgWljWlOMJrD DrEQ==
X-Gm-Message-State ALyK8tKzMc42xi6gheg6m9+pFlhmf/YPWXSCh94l1H1sw28XU4pMMX3CgZllzXfkPr+XqA==
X-Received by 10.98.200.81 with SMTP id z78mr18971944pff.143.1467603146774; Sun, 03 Jul 2016 20:32:26 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.21 (2010-09-15)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 26
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, ngupta@vflare.org, sergey.senozhatsky.work@gmail.com, rostedt@goodmis.org, mingo@redhat.com
X-Original-Date Mon, 4 Jul 2016 11:32:21 +0800
X-Original-Message-ID <20160704033221.GD9895@leo-test>
X-Original-References <1467355266-9735-1-git-send-email-opensource.ganesh@gmail.com> <1467355266-9735-6-git-send-email-opensource.ganesh@gmail.com> <20160704000516.GE19044@bbox>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1436176

Show key headers only | View raw


On Mon, Jul 04, 2016 at 09:05:16AM +0900, Minchan Kim wrote:
> On Fri, Jul 01, 2016 at 02:41:04PM +0800, Ganesh Mahendran wrote:
> > some minor change of comments:
> > 1). update zs_malloc(),zs_create_pool() function header
> > 2). update "Usage of struct page fields"
> > 
> > Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
> > ---
> >  mm/zsmalloc.c | 7 +++----
> >  1 file changed, 3 insertions(+), 4 deletions(-)
> > 
> > diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
> > index 2690914..6fc631a 100644
> > --- a/mm/zsmalloc.c
> > +++ b/mm/zsmalloc.c
> > @@ -20,6 +20,7 @@
> >   *	page->freelist(index): links together all component pages of a zspage
> >   *		For the huge page, this is always 0, so we use this field
> >   *		to store handle.
> > + *	page->units: first object index in a subpage of zspage
> 
> Hmm, I want to use offset instead of index.

Yes, it should be offset here. I mixed it with obj index. :)

Thanks

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 6/8] mm/zsmalloc: keep comments consistent with code Ganesh Mahendran <opensource.ganesh@gmail.com> - 2016-07-01 08:50 +0200
  Re: [PATCH 6/8] mm/zsmalloc: keep comments consistent with code Minchan Kim <minchan@kernel.org> - 2016-07-04 02:10 +0200
    Re: [PATCH 6/8] mm/zsmalloc: keep comments consistent with code Ganesh Mahendran <opensource.ganesh@gmail.com> - 2016-07-04 05:40 +0200

csiph-web