-
- Downloads
dm cache: speed up writing of the hint array
It's far quicker to always delete the hint array and recreate with dm_array_new() because we avoid the copying caused by mutation. Also simplifies the policy interface, replacing the walk_hints() with the simpler get_hint(). Signed-off-by:Joe Thornber <ejt@redhat.com> Signed-off-by:
Mike Snitzer <snitzer@redhat.com>
Showing
- drivers/md/dm-cache-metadata.c 27 additions, 53 deletionsdrivers/md/dm-cache-metadata.c
- drivers/md/dm-cache-policy-cleaner.c 1 addition, 1 deletiondrivers/md/dm-cache-policy-cleaner.c
- drivers/md/dm-cache-policy-internal.h 3 additions, 3 deletionsdrivers/md/dm-cache-policy-internal.h
- drivers/md/dm-cache-policy-smq.c 6 additions, 32 deletionsdrivers/md/dm-cache-policy-smq.c
- drivers/md/dm-cache-policy.h 5 additions, 5 deletionsdrivers/md/dm-cache-policy.h
Loading
Please register or sign in to comment