[Tux3] Block handle demo code

OGAWA Hirofumi hirofumi at mail.parknet.co.jp
Sat Nov 22 06:56:36 PST 2008

Daniel Phillips <phillips at phunq.net> writes:

> I'm just going to post this block handles demo code now and save my 
> traditional long winded explanation for later.  In brief: we think we 
> might make a clean break from buffer_head in Tux3.  If so, we still 
> need locking and IO handles for blocks when block size is smaller than 
> a memory page.  That is what this code is for: in a page cache, each 
> page->private will point at a struct handles, holding the state of up 
> to eight buffers in a single 16 byte struct (32 bytes on 64 bit arch).

For the record: it may have to handle HIGHMEM issue, e.g. kmap_atomic()
or something? Or we use GFP_USERS or something (at least wouldn't use
for file data)? At least I was not thinking about it.
OGAWA Hirofumi <hirofumi at mail.parknet.co.jp>

Tux3 mailing list
Tux3 at tux3.org

More information about the Tux3 mailing list