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:56 +0800
committerMikulas Patocka <mpatocka@redhat.com>2026-01-04 20:35:32 +0100
commita2f0a98b13db005403d026274782ac668b59df32 (patch)
tree94bfa554bd69eced6408790cf4c9c2feab4455de /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parentc1881c74f4dfdadc1bf827d971a605b21ba5a587 (diff)
dm cache: drop redundant origin size check
The cache target already exposes the origin device through cache_iterate_devices(), which allows dm-table to call device_area_is_invalid() and verify that the mapping fits inside the underlying block device. The explicit ti->len > origin_sectors test in parse_origin_dev() is therefore redundant. Drop this check and rely on the core device validation instead. This changes the user-visible error string when the origin is 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