btrfs: add debug check for extent_io range alignment
authorDavid Sterba <dsterba@suse.cz>
Tue, 30 Apr 2013 15:22:23 +0000 (15:22 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:15 +0000 (11:29 -0400)
commit8d599ae1bfc035c38660cdc1a756ae4150d25e01
treefd5d6399bc4bf842ab4fb53d084bab4ad030e643
parent15b0a89d71ae2573ed1c3b168f08320527eed34e
btrfs: add debug check for extent_io range alignment

The 'end' value must exactly cover the end of the interval, which means
one byte less than the expected block alignment, or in case of a file
smaller than one block, one byte less than the inode size.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent_io.c