Re: [PATCH updated] ext4: Use an rb tree for tracking blocks freed during transaction.

Aneesh Kumar K.V
2008-10-10T15:34:42Z

On Fri, Oct 10, 2008 at 08:58:30PM +0530, Aneesh Kumar K.V wrote:
> With this patch we track the block freed during a transaction using
> rb tree. We also make sure contiguos blocks freed are collected
> in one rb node.

The change from the last version is to add proper locking
when adding the new extents to active_transaction list.

/* Add the extent to active_transaction list */
+ spin_lock(&sbi->s_md_lock);
list_add(&new_entry->list, &sbi->s_active_transaction);
+ spin_unlock(&sbi->s_md_lock);

-aneesh