summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorLi Chen <me@linux.beauty>2025-12-10 11:17:57 +0800
committerMikulas Patocka <mpatocka@redhat.com>2026-01-04 20:35:32 +0100
commita23cc8257ecdfdeb25fd26d25fec4539ef377944 (patch)
treea4fa5b69cf320031418565965261658e88d808c7 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parenta2f0a98b13db005403d026274782ac668b59df32 (diff)
dm clone: drop redundant size checks
The clone target already exposes both source and destination devices via clone_iterate_devices(), so dm-table's device_area_is_invalid() helper ensures that the mapping does not extend past either underlying block device. The manual comparisons between ti->len and the source/destination device sizes in parse_source_dev() and parse_dest_dev() are therefore redundant. Remove these checks and rely on the core validation instead. This changes the error strings reported when the devices are too small, but preserves the failure behaviour. Signed-off-by: Li Chen <me@linux.beauty> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions