]> 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)
commit00c63b2c8b50a158332c4f7b28189a2bc9750369
treefd5d6399bc4bf842ab4fb53d084bab4ad030e643
parent6a1e893cad22f2192c3723bd50c1bb6f6bc260a8
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