diff options
author | Qu Wenruo <[email protected]> | 2020-11-03 21:30:47 +0800 |
---|---|---|
committer | David Sterba <[email protected]> | 2020-12-08 15:54:04 +0100 |
commit | a26663e7a2f456b8111de0135394c04c72831930 (patch) | |
tree | a76df3b11742d661a8796315d69399338f99b86e /lib/pm-notifier-error-inject.c | |
parent | 2f4d60dfae0ee4ad1c8d57e102c3b032b8f9d4d5 (diff) |
btrfs: make csum_tree_block() handle node smaller than page
For subpage size support, metadata blocks of nodesize are smaller than
one page and this needs to be handled when calculating the checksum.
The checksummed start and length need to be adjusted but only for the
first page:
- start is simply offset in the page
- length is nodesize (subpage) or PAGE_SIZE for all other cases
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Goldwyn Rodrigues <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions