Re: [v2,2/4] Simplify catalog_read()

From: Sukadev Bhattiprolu
Date: Tue Sep 30 2014 - 20:59:36 EST


Michael Ellerman [mpe@xxxxxxxxxxxxxx] 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/