From: Filipe Manana Date: Tue, 11 Mar 2014 13:56:15 +0000 (+0000) Subject: Btrfs: cache extent states in defrag code path X-Git-Tag: v3.15-rc1~96^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=308d9800b2c4f1fb344dbf055912d3140438bac0;p=pandora-kernel.git Btrfs: cache extent states in defrag code path When locking file ranges in the inode's io_tree, cache the first extent state that belongs to the target range, so that when unlocking the range we don't need to search in the io_tree again, reducing cpu time and making and therefore holding the io_tree's lock for a shorter period. Signed-off-by: Filipe David Borba Manana Signed-off-by: Chris Mason --- Reading git-diff-tree failed