Re: [ANNOUNCE] Btrfs v0.12 released

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Mason
Date: Tuesday, February 12, 2008 - 6:43 am

On Tuesday 12 February 2008, David Miller wrote:

Explaining it won't make it pretty, but at least I can tell you what the code 
does.

This is all part of the btrfs code that supports tree block sizes larger than 
a page.  The extent_buffer code (extent_io.c) provides a read/write api into 
an extent_buffer based on offsets from the start of the multi-page buffer.  
That's where the relative unsigned long comes from.

The part where I cast it to pointers is me trying to maintain type checking 
throughout the code.  The pointers themselves are useless, they need to be 
matched with an extent_buffer to actually get to the bytes.

There are a few parts where the SETGET funcs are open coded, mostly in very 
performance critical functions.  Just look for lexxx_to_cpu


Btree blocks have the offset of the item header from the start of the block 
and the offset of the item data.  And, I'm very bad at naming.


Thanks

-chris
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ANNOUNCE] Btrfs v0.12 released, Chris Mason, (Wed Feb 6, 10:00 am)
Re: [ANNOUNCE] Btrfs v0.12 released, David Miller, (Sun Feb 10, 6:12 pm)
Re: [ANNOUNCE] Btrfs v0.12 released, Chris Mason, (Mon Feb 11, 6:42 am)
Re: [ANNOUNCE] Btrfs v0.12 released, David Miller, (Mon Feb 11, 11:43 pm)
BTRFS partition usage..., David Miller, (Tue Feb 12, 12:21 am)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 1:11 am)
CRC32C big endian bugs..., David Miller, (Tue Feb 12, 2:23 am)
Re: [ANNOUNCE] Btrfs v0.12 released, Chris Mason, (Tue Feb 12, 6:43 am)
Re: BTRFS partition usage..., Chris Mason, (Tue Feb 12, 6:49 am)
Re: BTRFS partition usage..., Jan Engelhardt, (Tue Feb 12, 7:00 am)
Re: BTRFS partition usage..., Chris Mason, (Tue Feb 12, 7:08 am)
Re: BTRFS partition usage..., Jan Engelhardt, (Tue Feb 12, 7:21 am)
Re: BTRFS partition usage..., Chris Mason, (Tue Feb 12, 7:35 am)
Re: BTRFS partition usage..., Jan Engelhardt, (Tue Feb 12, 8:04 am)
Re: BTRFS partition usage..., Chris Mason, (Tue Feb 12, 9:17 am)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 1:50 pm)
BTRFS only works with PAGE_SIZE <= 4K, David Miller, (Tue Feb 12, 2:55 pm)
Re: BTRFS only works with PAGE_SIZE <= 4K, Chris Mason, (Tue Feb 12, 3:03 pm)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 4:26 pm)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 4:28 pm)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 4:33 pm)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 4:34 pm)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 4:35 pm)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 4:38 pm)
Re: BTRFS partition usage..., Jan Engelhardt, (Tue Feb 12, 4:39 pm)
Re: BTRFS partition usage..., Jan Engelhardt, (Tue Feb 12, 4:42 pm)
Re: BTRFS partition usage..., Theodore Tso, (Tue Feb 12, 5:45 pm)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 6:08 pm)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 6:09 pm)
Re: BTRFS partition usage..., Rene Herman, (Tue Feb 12, 6:22 pm)
Re: BTRFS partition usage..., Bryan Henderson, (Tue Feb 12, 6:25 pm)
Re: BTRFS partition usage..., Jeff Garzik, (Tue Feb 12, 7:10 pm)
Re: BTRFS partition usage..., Christoph Hellwig, (Wed Feb 13, 12:02 am)
Re: BTRFS partition usage..., Szabolcs Szakacsits, (Wed Feb 13, 5:51 pm)