Re: [PATCH] Btrfs: be smarter about dropping things from the tree log

2012-10-01 Thread Josef Bacik
On Fri, Sep 28, 2012 at 11:45:21AM -0600, Zach Brown wrote: When we truncate existing items in the tree log we've been searching for each individual item and removing them. This is unnecessary churn and searching, just keep track of the slot we are on and how many items we need to delete

[PATCH] Btrfs: be smarter about dropping things from the tree log V2

2012-10-01 Thread Josef Bacik
When we truncate existing items in the tree log we've been searching for each individual item and removing them. This is unnecessary churn and searching, just keep track of the slot we are on and how many items we need to delete and delete them all at once. Thanks, Signed-off-by: Josef Bacik

[PATCH] Btrfs: be smarter about dropping things from the tree log

2012-09-28 Thread Josef Bacik
When we truncate existing items in the tree log we've been searching for each individual item and removing them. This is unnecessary churn and searching, just keep track of the slot we are on and how many items we need to delete and delete them all at once. Thanks, Signed-off-by: Josef Bacik

Re: [PATCH] Btrfs: be smarter about dropping things from the tree log

2012-09-28 Thread Zach Brown
When we truncate existing items in the tree log we've been searching for each individual item and removing them. This is unnecessary churn and searching, just keep track of the slot we are on and how many items we need to delete and delete them all at once. Thanks, (speaking of unnecessary