Re: [PATCH] fix hard-coded disk header chunk size for persistentsnapshot
From: Mikulas Patocka
Date: Wed May 12 2010 - 00:58:48 EST
On Wed, 12 May 2010, Alasdair G Kergon wrote:
> On Wed, May 12, 2010 at 10:29:22AM +0900, Tomohiro Kusumi wrote:
> > This patch fixes hard-coded value for the size of a chunk that includes
> > disk header for persistent snapshot. It should be changed to existing
> > macro NUM_SNAPSHOT_HDR_CHUNKS instead of using hard-coded value 1.
>
> Any more places too? (E.g. persistent_commit_merge)
>
> Alasdair
I think the expression in persistent_commit_merge should be changed to:
ps->next_free = area_location(ps, ps->current_area) +
ps->current_committed + 1;
It is numerically the same, but will avoid trouble if
NUM_SNAPSHOT_HDR_CHUNKS is increased.
Mikulas
--
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/