aboutsummaryrefslogtreecommitdiff
path: root/lib/test_stackinit.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2020-11-03 21:31:04 +0800
committerDavid Sterba <[email protected]>2020-12-08 15:54:05 +0100
commit480a8ec83b179da1c484133b0f687090e89b00c5 (patch)
treed81465488070407b1c59a28fdd137e2d57374c56 /lib/test_stackinit.c
parent96e63a45fb9a40ba49813c1e538358f3cedbedba (diff)
btrfs: scrub: refactor scrub_find_csum()
Function scrub_find_csum() is to locate the csum for bytenr @logical from sctx->csum_list. However it lacks a lot of comments to explain things like how the csum_list is organized and why we need to drop csum range which is before us. Refactor the function by: - Add more comments explaining the behavior - Add comment explaining why we need to drop the csum range - Put the csum copy in the main loop This is mostly for the incoming patches to make scrub_find_csum() able to find multiple checksums. Signed-off-by: Qu Wenruo <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions