Re: [PATCH] fix page leak during core dump

From: David Howells
Date: Sat Mar 31 2007 - 09:00:16 EST


Hugh Dickins <hugh@xxxxxxxxxxx> wrote:

> No, I think that's wrong: whereas the binfmt_elf one did its
> page_cache_release down below at the bottom of the block, this
> version does it in each subblock,

All but the first, which is why there's not a common one post if-complex.

> so there you're removing the dump_seek success one. Can't we preserve that
> beauteous macro here and just do...
> ...
> - DUMP_SEEK(file->f_pos + PAGE_SIZE);
> page_cache_release(page);
> + DUMP_SEEK(file->f_pos + PAGE_SIZE);

Actually, that works just as well, I think. I like it better than my
suggestion (see email in response to Andrew).

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