]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: warn if extent buffer mapping crosses a page boundary in csum_tree_block
authorJohannes Thumshirn <jthumshirn@suse.de>
Mon, 25 Feb 2019 13:24:16 +0000 (14:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:17 +0000 (19:02 +0200)
commit1c3788d9e2b47840f455e3fb280c2de52515202c
tree9db7937e709abce92c0c4c92dbe13d34c4086e3f
parent8e4b718daa76e02e3943e68feebf557941823286
btrfs: warn if extent buffer mapping crosses a page boundary in csum_tree_block

Since commit 5886cf6afb84 ("btrfs: document extent mapping assumptions in
checksum") we have a comment in place why map_private_extent_buffer()
can't return 1 in the csum_tree_block() case.

Make this a bit more explicit and WARN_ON() in case this this assumption
breaks.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c