diff options
| author | Johannes Thumshirn <jthumshirn@suse.de> | 2019-02-25 14:24:16 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:17 +0200 |
| commit | c53839fc3217085c210e1a62022016f199ae7b5a (patch) | |
| tree | 9db7937e709abce92c0c4c92dbe13d34c4086e3f /fs/btrfs/root-tree.c | |
| parent | 2996e1f8bcadf0436cc67b63af01523f6cf5d43f (diff) | |
| download | linux-c53839fc3217085c210e1a62022016f199ae7b5a.tar.gz linux-c53839fc3217085c210e1a62022016f199ae7b5a.tar.bz2 linux-c53839fc3217085c210e1a62022016f199ae7b5a.zip | |
btrfs: warn if extent buffer mapping crosses a page boundary in csum_tree_block
Since commit d2e174d5d3ee ("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>
Diffstat (limited to 'fs/btrfs/root-tree.c')
0 files changed, 0 insertions, 0 deletions
