]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: check file extent type before anything else
authorJosef Bacik <jbacik@fusionio.com>
Thu, 31 Oct 2013 20:49:02 +0000 (16:49 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:12:49 +0000 (22:12 -0500)
commit7c8f4978bb3bcb8787f8ad61601fbe0ff8b18289
treec4961e7d434b24c55a8f747aa5039b6cafe76200
parentc65a79997f6915cd17be6104bd0d4094eca416f5
Btrfs: check file extent type before anything else

I hit this problem with my no holes patch and it made me realize what the
problem was for bz 60834.  If the first item in the leaf is an inline extent and
we try to read anything starting from disk_bytenr onward we will read off the
end of the leaf.  So we need to check to see what it's type is, and if it's not
REG we can just break out.  This should fix this problem.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/send.c