Re: [Ext2-devel] Re: [RFC] ext3/jbd race: releasing in-use journal_heads
From: Suparna Bhattacharya
Date: Tue Mar 08 2005 - 03:07:02 EST
On Mon, Mar 07, 2005 at 11:37:42PM -0800, Andrew Morton wrote:
> Suparna Bhattacharya <suparna@xxxxxxxxxx> wrote:
> > (let me know if the interface in the patch
> > I just posted seems like the right direction to use when we go for the
> > cleanup)
> Well what are the semantics? Pass in an inclusive max_index and the gang
> lookup functions terminate when they hit an item whose index is greater
> than max_index? And return the number of items thus found?
Yes. (end_index or max_items, whichever it hits first)
> Seems sensible, and all the comparisons do the right thing if max_index = -1.
end_index is unsigned long - so -1 would imply highest index possible
... i.e. all items, subject to the radix_tree_maxindex (max_index used
internally in the radix tree code).
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> Ext2-devel mailing list
Suparna Bhattacharya (suparna@xxxxxxxxxx)
Linux Technology Center
IBM Software Lab, India
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/