Btrfs: add an assert to btrfs_lookup_csums_range for alignment
authorJosef Bacik <jbacik@fusionio.com>
Tue, 15 Oct 2013 13:36:40 +0000 (09:36 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:58:45 +0000 (21:58 -0500)
commit4277a9c3b3665f2830c55ece015163867b9414cc
treec87563bb9b275aa6cbd4c06ba64a7cdd98b68c27
parented9e8af88e2551aaa6bf51d8063a2493e2d71597
Btrfs: add an assert to btrfs_lookup_csums_range for alignment

I was hitting weird issues when trying to remove hole extents and it turned out
it was because I was sending non-aligned offsets down to
btrfs_lookup_csums_range.  So add an assert for this in case somebody trips over
this in the future.  Thanks,

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