diff options
| author | Qu Wenruo <wqu@suse.com> | 2021-03-25 15:14:40 +0800 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2021-04-19 17:25:18 +0200 |
| commit | eca0f6f64349c412695315490c30cda1622fba9f (patch) | |
| tree | 74c79f9aaba6e512c5bb8e98f62e64e81b87f50e /lib/test_overflow.c | |
| parent | 139e8cd32592affac5a1e719c2be96ecb8405c19 (diff) | |
btrfs: subpage: support metadata checksum calculation at write time
Add a new helper, csum_dirty_subpage_buffers(), to iterate through all
dirty extent buffers in one bvec.
Also extract the code of calculating csum for one extent buffer into
csum_one_extent_buffer(), so that both the existing csum_dirty_buffer()
and the new csum_dirty_subpage_buffers() can reuse the same routine.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions
