[Devel] [PATCH hci-8.2 v9 4/9] dm-ploop: factor out ploop_read_delta() from ploop_add_delta()

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Thu Nov 19 14:40:53 MSK 2026


> Move reading of delta BAT and applying its mappings to
> ploop->bat_entries into a separate function ploop_read_delta(). It
> will be used to reload metadata of already added deltas.
> 
> ploop_read_delta() takes is_raw from deltas[level], so ploop_add_delta()
> sets it before the call.
> 
> Replace the stale comment of ploop_add_delta(): it claimed deltas are
> added from oldest to newest, while ploop_add_deltas_stack() adds them
> from top to base, which ploop_read_delta() relies on.
> 
> No functional changes.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-148171
> Feature: dm-ploop: ploop target driver
> 
> Signed-off-by: Alexander Ivanov <alexander.ivanov at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119113446.3579457-1-alexander.ivanov@virtuozzo.com?part=4




More information about the Devel mailing list