[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141001005905.GB4441@us.ibm.com>
Date: Tue, 30 Sep 2014 17:59:05 -0700
From: Sukadev Bhattiprolu <sukadev@...ux.vnet.ibm.com>
To: Michael Ellerman <mpe@...erman.id.au>
Cc: Arnaldo Carvalho de Melo <acme@...nel.org>, ak@...ux.intel.com,
Jiri Olsa <jolsa@...hat.com>, peterz@...radead.org,
eranian@...gle.com, Paul Mackerras <paulus@...ba.org>,
Michael Ellerman <michaele@....ibm.com>,
linux-kernel@...r.kernel.org, dev@...yps.com,
linuxppc-dev@...ts.ozlabs.org,
Anshuman Khandual <khandual@...ux.vnet.ibm.com>
Subject: Re: [v2,2/4] Simplify catalog_read()
Michael Ellerman [mpe@...erman.id.au] wrote:
| > @@ -203,6 +125,7 @@ static ssize_t catalog_read(struct file *filp, struct kobject *kobj,
| >
| > page_offset = offset / 4096;
| > page_count = count / 4096;
|
| I don't see where page_count is used.
Yes, I will remove it.
|
| > + offset_in_page = count % 4096;
|
| Shouldn't offset_in_page be based on offset ?
Yes. I will fix that.
Thanks,
Sukadev
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists