]> git.karo-electronics.de Git - karo-tx-linux.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>
Thu, 4 Oct 2012 13:40:09 +0000 (09:40 -0400)
commit0f31dbe3ebf12ab8ec8d0037f4ec39f500f4362b
treecf31326dcad34c6a69cf7b8012be9efa2787db70
parent987f4d6a0dd4b3355289b1639c198bc4755fa320
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