Johannes Thumshirn
d2e174d5d3
btrfs: document extent mapping assumptions in checksum
...
Document why map_private_extent_buffer() cannot return '1' (i.e. the map
spans two pages) for the csum_tree_block() case.
The current algorithm for detecting a page boundary crossing in
map_private_extent_buffer() will return a '1' *IFF* the extent buffer's
offset in the page + the offset passed in by csum_tree_block() and the
minimal length passed in by csum_tree_block() - 1 are bigger than
PAGE_SIZE.
We always pass BTRFS_CSUM_SIZE (32) as offset and a minimal length of 32
and the current extent buffer allocator always guarantees page aligned
extends, so the above condition can't be true.
Reviewed-by: Nikolay Borisov <nborisov@suse.com >
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de >
Signed-off-by: David Sterba <dsterba@suse.com >
2018-12-17 14:51:41 +01:00
..
2018-12-17 14:51:37 +01:00
2018-08-06 13:12:41 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:30 +01:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:33 +01:00
2018-12-17 14:51:37 +01:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:32 +01:00
2018-05-29 18:13:00 +02:00
2018-12-17 14:51:37 +01:00
2018-12-17 14:51:37 +01:00
2018-04-12 16:29:46 +02:00
2018-10-15 17:23:38 +02:00
2018-10-15 17:23:33 +02:00
2018-10-17 19:21:00 +02:00
2018-10-15 17:23:41 +02:00
2018-12-17 14:51:36 +01:00
2018-12-17 14:51:34 +01:00
2018-10-15 17:23:25 +02:00
2018-12-17 14:51:41 +01:00
2018-08-06 13:12:55 +02:00
2018-10-15 17:23:25 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:41 +01:00
2018-12-17 14:51:41 +01:00
2018-10-15 17:23:33 +02:00
2018-10-15 17:23:33 +02:00
2018-12-17 14:51:38 +01:00
2018-12-17 14:51:40 +01:00
2018-12-17 14:51:31 +01:00
2018-11-06 16:42:32 +01:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:37 +01:00
2018-05-28 18:07:36 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:43 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:41 +01:00
2018-12-17 14:51:37 +01:00
2018-04-12 16:29:55 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:43 +02:00
2018-03-26 15:09:39 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:25 +01:00
2018-12-17 14:51:25 +01:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:41 +02:00
2018-04-20 19:18:16 +02:00
2018-05-17 14:18:25 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:39 +01:00
2018-10-15 17:23:40 +02:00
2018-08-06 13:12:45 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:43 +02:00
2018-10-15 17:23:25 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:39 +01:00
2018-08-06 13:13:00 +02:00
2018-12-17 14:51:41 +01:00
2018-11-21 17:03:50 +01:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:43 +02:00
2018-12-17 14:51:37 +01:00
2018-12-17 14:51:37 +01:00
2018-05-28 18:23:39 +02:00
2018-12-17 14:51:25 +01:00
2018-12-17 14:51:25 +01:00
2018-12-04 15:05:30 +01:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-12-17 14:51:31 +01:00
2018-12-17 14:51:31 +01:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:53 +02:00
2018-12-17 14:51:39 +01:00
2018-12-17 14:51:40 +01:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00