Btrfs: cache extent state in find_delalloc_range
authorJosef Bacik <josef@redhat.com>
Tue, 2 Feb 2010 21:19:11 +0000 (21:19 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 15 Mar 2010 15:00:13 +0000 (11:00 -0400)
commitc2a128d28a2e78e159e17e8c9274d0a9d9492555
treede2a9aab9c2037aa027f598e66006de7b8cf70cd
parent49958fd7dbb83cd4d65179d025940e01fe1fbacd
Btrfs: cache extent state in find_delalloc_range

This patch makes us cache the extent state we find in find_delalloc_range since
we'll have to lock the extent later on in the function.  This will keep us from
re-searching for the rang when we try to lock the extent.

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c