aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/scrub.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-10-31 16:49:02 -0400
committerChris Mason <chris.mason@fusionio.com>2013-11-11 22:12:49 -0500
commit007d31f755294b9db69c3d18e90d6edae9f1604d (patch)
treec4961e7d434b24c55a8f747aa5039b6cafe76200 /fs/btrfs/scrub.c
parentf570e757b54ca6eceabc9b19a6342f14e836c196 (diff)
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>
Diffstat (limited to 'fs/btrfs/scrub.c')
0 files changed, 0 insertions, 0 deletions