lkml.org 
[lkml]   [2000]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: The INN/mmap bug


--On 09/18/00 09:16:22 -0400 Alexander Viro <viro@math.psu.edu> 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.
>
> ??? Details, please. What the hell are you doing with buffer-heads for a
> piece of data that can be completely unaligned?
>

When reiserfs_get_block is called on the packed data (with create == 1), we
unpack it to a full block, so the generic functions can handle
dirties/writes from then on. If the data in the page cache isn't up to
date, we need to copy the packed data into the page cache so it doesn't get
lost in the conversion.

This isn't for writing directly to the tail, I'm only doing that in
writepage, where I always overwrite the tail data with page data.

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

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.054 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site