Re: The INN/mmap bug

From: Chris Mason (mason@suse.com)
Date: Mon Sep 18 2000 - 11:07:49 EST


--On 09/18/00 08:52:12 -0700 Linus Torvalds <torvalds@transmeta.com> wrote:

>
>
> On Mon, 18 Sep 2000, Chris Mason wrote:
>>
>> ReiserFS depends on the buffer head up to date flag being correct when it
>> is sent to get_block. When unpacking the tail, we have to know if the
>> packed data on disk should be copied over the data in the page.
>>
>> So, the above should work for us if you tested Page_Uptodate before
>> testing buffer_mapped.
>
> Can't be done.
>
> A up-to-date but non-mapped buffer is a perfectly valid thing to have -
> it's just a hole.
>
> So we can't mark the buffer uptodate before marking it mapped - that would
> be a totally different state.
>

Ok, I can also check to see if the page is up to date during the tail
conversion. Mostly I wanted to make everyone aware that nastiness like
this exists, and that I haven't found a clean solution yet.

-chris

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:17 EST