Re: 2.6.19 file content corruption on ext3

From: Andrew Morton
Date: Mon Dec 18 2006 - 02:19:09 EST


On Sun, 17 Dec 2006 23:16:17 -0800
Andrew Morton <akpm@xxxxxxxx> wrote:

> > out:
> > if (buffers_to_free) {
> > struct buffer_head *bh = buffers_to_free;
>
> This will (at least) cause truncate to do peculiar things.
> do_invalidatepage() runs discard_buffer() against the dirty page and will
> then expect try_to_free_buffers() to remove those buffers and then clean
> the page. truncate_complete_page() will clean the page, but it still has
> those invalidated buffers. We'll end up with a large number of clean,
> unused pages on the LRU, with attached buffers. These should eventually
> get reaped, but it'll change the page aging dynamics.

That being said, it's be great to get this tested by someone who can
trigger this bug, please.
-
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/