Linux-NVDIMM Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Verma, Vishal L" <vishal.l.verma-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: "Williams,
	Dan J" <dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	"jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org"
	<jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: "linux-nvdimm-y27Ovi1pjclAfugRpC6u6w@public.gmane.org"
	<linux-nvdimm-y27Ovi1pjclAfugRpC6u6w@public.gmane.org>
Subject: Re: [ndctl PATCH v2 2/3] ndctl: add a BTT check utility
Date: Wed, 1 Mar 2017 20:27:24 +0000	[thread overview]
Message-ID: <1488399969.4873.20.camel@intel.com> (raw)
In-Reply-To: <CAPcyv4g+UfCR2x3KwWB+yu6fRh5UcVRvdAdrx3ri8bpJx+r8YQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Wed, 2017-03-01 at 07:54 -0800, Dan Williams wrote:
> On Wed, Mar 1, 2017 at 7:02 AM, Jeff Moyer <jmoyer@redhat.com> wrote:
> > "Verma, Vishal L" <vishal.l.verma@intel.com> writes:
> > 
> > > > - Differentiate the use off BTT_PG_SIZE, sysconf(_SC_PAGESIZE),
> > > > and
> > > > SZ_4K
> > > >   (for the fixed start offset) in the different places they're
> > > > used
> > > > (Jeff)
> > > > 
> > > > I think you could go even further with this.  For example, you
> > > > coud
> > > > use
> > > > BTT_START_OFFSET for the initial offset from the beginning of
> > > > the raw
> > > > namespace to the first btt info block.  Using the page size for
> > > > the
> > > > size
> > > > of the info block is also less informative than it could
> > > > be.  Instead,
> > > > consider adding BTT_INFO_SIZE.  After that, all of your math
> > > > starts to
> > > > look a bit more readable to my eye.
> > > 
> > > I thought of something along these lines, but ended up not doing
> > > this to
> > > stay consistent with the 'BTT_PG_SIZE' usage in the kernel. But
> > > maybe
> > > the kernel could use some cleaning up in this regard :)
> > 
> > I obviously think it would look nicer.  ;-)  Anyway, it's not a
> > blocker
> > to get this series in.
> 
> So, my feedback was to store the offset in the bttc context so it's
> just a property we carry and add unconditionally, it just might be
> zero sometimes. Does that make things any cleaner?

That's a good idea - I'll work on that.
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

  parent reply	other threads:[~2017-03-01 20:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-22 22:47 [ndctl PATCH v2 0/3] Add ndctl check-namespace Vishal Verma
2017-02-22 22:47 ` [ndctl PATCH v2 1/3] ndctl: move the fletcher64 routine to util/ Vishal Verma
2017-02-22 22:47 ` [ndctl PATCH v2 2/3] ndctl: add a BTT check utility Vishal Verma
2017-02-24  1:14   ` Dan Williams
2017-02-28 21:11   ` Jeff Moyer
     [not found]     ` <x49a89610mr.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
2017-02-28 22:31       ` Verma, Vishal L
     [not found]         ` <1488321002.4873.17.camel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-03-01 15:02           ` Jeff Moyer
     [not found]             ` <x49inntt4z6.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
2017-03-01 15:54               ` Dan Williams
     [not found]                 ` <CAPcyv4g+UfCR2x3KwWB+yu6fRh5UcVRvdAdrx3ri8bpJx+r8YQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-01 20:27                   ` Verma, Vishal L [this message]
2017-03-01 20:26               ` Verma, Vishal L
2017-02-22 22:47 ` [ndctl PATCH v2 3/3] ndctl, test: Add a unit test for the BTT checker Vishal Verma
     [not found]   ` <20170222224724.7696-4-vishal.l.verma-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-02-28 21:19     ` Jeff Moyer
     [not found]       ` <x494lze10ae.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
2017-02-28 21:49         ` Verma, Vishal L
     [not found]           ` <1488318514.4873.12.camel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-02-28 21:58             ` Jeff Moyer

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=1488399969.4873.20.camel@intel.com \
    --to=vishal.l.verma-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-nvdimm-y27Ovi1pjclAfugRpC6u6w@public.gmane.org \
    /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