From: Josef Bacik Date: Mon, 15 Oct 2012 17:43:18 +0000 (-0400) Subject: Btrfs: optimize leaf_space_used X-Git-Tag: v3.8-rc1~71^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41be1f3b40b87de33cd2e7463dce88596dbdccc4;p=pandora-kernel.git Btrfs: optimize leaf_space_used This gets called at least 4 times for every level while adding an object, and it involves 3 kmapping calls, which on my box take about 5us a piece. So instead use a token, which brings us down to 1 kmap call and makes this function take 1/3 of the time per call. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed