]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30eeaadc64e373a728a23e18334f8222e7d9d9fb
treefd5d6399bc4bf842ab4fb53d084bab4ad030e643
parent6323cee3bd596276d61d9a71968cf6b84520f29b
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