]> 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>
Mon, 1 Oct 2012 19:35:06 +0000 (15:35 -0400)
commit9592a7877ee5a43dde9d5d27e0725ab088c03d72
treec4a796aa2cc5c98164bcb54d7ecab0376ece64ff
parent7b86f2283b6b0009e7c554202e23980b46cce44b
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