]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: optimize tree-log.c:count_inode_refs()
authorFilipe David Borba Manana <fdmanana@gmail.com>
Mon, 14 Oct 2013 21:49:11 +0000 (22:49 +0100)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:02:19 +0000 (22:02 -0500)
commit07fe947b4111ca2ac850dc96061e1b80768c14bc
treeb74a3a9da256a0b624d2339ec5835b1756892b55
parentb8b2c4665d09625fa11cc104b8a48fb41669937f
Btrfs: optimize tree-log.c:count_inode_refs()

Avoid repeated tree searches by processing all inode ref items in
a leaf at once instead of processing one at a time, followed by a
path release and a tree search for a key with a decremented offset.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/tree-log.c