From: Arne Jansen Date: Wed, 6 Apr 2011 10:02:20 +0000 (+0000) Subject: btrfs: using cached extent_state in set/unlock combinations X-Git-Tag: v2.6.39-rc4~5^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=507903b81840a70cc6a179d4eb03584ad50e8c5b;p=pandora-kernel.git btrfs: using cached extent_state in set/unlock combinations In several places the sequence (set_extent_uptodate, unlock_extent) is used. This leads to a duplicate lookup of the extent state. This patch lets set_extent_uptodate return a cached extent_state which can be passed to unlock_extent_cached. The occurences of the above sequences are updated to use the cache. Only end_bio_extent_readpage is updated that it first gets a cached state to pass it to the readpage_end_io_hook as the prototype requested and is later on being used for set/unlock. Signed-off-by: Arne Jansen Signed-off-by: Chris Mason --- Reading git-diff-tree failed