]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: be smarter about dropping things from the tree log
authorJosef Bacik <jbacik@fusionio.com>
Fri, 28 Sep 2012 15:56:28 +0000 (11:56 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 13:15:41 +0000 (09:15 -0400)
commitc5c355fa72052085ab29d83c2aaed5ddfa55ee7b
tree1f75eeb616202d30d331149c922525fbd25b84d8
parentd6e3d92b8bf462931e1a5228da742bddb75c95a6
Btrfs: be smarter about dropping things from the tree log

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 <jbacik@fusionio.com>
fs/btrfs/tree-log.c