]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm vdo: remove redundant TYPE argument from vdo_allocate macro
authorKen Raeburn <raeburn@redhat.com>
Fri, 27 Feb 2026 01:12:07 +0000 (20:12 -0500)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 2 Mar 2026 16:03:28 +0000 (17:03 +0100)
commit9bb388b1a95751c4a4a99a4dab1b21136a4eeb96
treeace771030199c73b03320ec4ef453925a3628fff
parent6af58aa3b028e364c0a8f8b6be48fca17e571de3
dm vdo: remove redundant TYPE argument from vdo_allocate macro

We can infer the type needed from the supplied pointer argument. A
couple invocation sites needed fixing to supply the proper type of
pointer.

Use overflow.h's size_mul, and we can remove the __vdo_do_allocation
wrapper which did the same overflow check.

Signed-off-by: Ken Raeburn <raeburn@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
32 files changed:
drivers/md/dm-vdo/action-manager.c
drivers/md/dm-vdo/block-map.c
drivers/md/dm-vdo/dedupe.c
drivers/md/dm-vdo/dm-vdo-target.c
drivers/md/dm-vdo/encodings.c
drivers/md/dm-vdo/flush.c
drivers/md/dm-vdo/funnel-queue.c
drivers/md/dm-vdo/funnel-workqueue.c
drivers/md/dm-vdo/indexer/chapter-index.c
drivers/md/dm-vdo/indexer/config.c
drivers/md/dm-vdo/indexer/delta-index.c
drivers/md/dm-vdo/indexer/funnel-requestqueue.c
drivers/md/dm-vdo/indexer/geometry.c
drivers/md/dm-vdo/indexer/index-layout.c
drivers/md/dm-vdo/indexer/index-page-map.c
drivers/md/dm-vdo/indexer/index-session.c
drivers/md/dm-vdo/indexer/index.c
drivers/md/dm-vdo/indexer/io-factory.c
drivers/md/dm-vdo/indexer/sparse-cache.c
drivers/md/dm-vdo/indexer/volume-index.c
drivers/md/dm-vdo/indexer/volume.c
drivers/md/dm-vdo/int-map.c
drivers/md/dm-vdo/memory-alloc.c
drivers/md/dm-vdo/memory-alloc.h
drivers/md/dm-vdo/message-stats.c
drivers/md/dm-vdo/packer.c
drivers/md/dm-vdo/recovery-journal.c
drivers/md/dm-vdo/repair.c
drivers/md/dm-vdo/slab-depot.c
drivers/md/dm-vdo/thread-utils.c
drivers/md/dm-vdo/vdo.c
drivers/md/dm-vdo/vio.c