Re: [patch 1/3] add the fsblock layer
From: Chris Mason
Date: Mon Jun 25 2007 - 09:22:23 EST
On Sun, Jun 24, 2007 at 03:46:13AM +0200, Nick Piggin wrote:
> Rewrite the buffer layer.
Overall, I like the basic concepts, but it is hard to track the locking
rules. Could you please write them up?
I like the way you split out the assoc_buffers from the main fsblock
code, but the list setup is still something of a wart. It also provides
poor ordering of blocks for writeback.
I think it makes sense to replace the assoc_buffers list head with a
radix tree sorted by block number. mark_buffer_dirty_inode would up the
reference count and put it into the radix, the various flushing routines
would walk the radix etc.
If you wanted to be able to drop the reference count once the block was
written you could have a back pointer to the appropriate inode.
-chris
-
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/