Re: [PATCH v5 7/8] vmcore: calculate vmcore file size from buffersize and total size of vmcore objects

From: HATAYAMA Daisuke
Date: Wed May 15 2013 - 04:26:12 EST


(2013/05/15 1:47), Vivek Goyal wrote:
On Tue, May 14, 2013 at 10:57:46AM +0900, HATAYAMA Daisuke wrote:
The previous patches newly added holes before each chunk of memory and
the holes need to be count in vmcore file size. There are two ways to
count file size in such a way:

1) supporse p as a poitner to the last program header entry with
PT_LOAD type, then roundup(p->p_offset + p->p_memsz, PAGE_SIZE), or

This part was wrong. This should have been:

1) support m as a pointer to the last vmcore object in vmcore_list, then file size is (m->offset + m->size), or

I'll correct this way in next patch.

Note that no functional change, only description is wrong here.

--
Thanks.
HATAYAMA, Daisuke

--
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/