Skip to content

dm vdo: update struct allocation and add flexible-array annotations

Ken Raeburn dm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dm vdo: update vdo_allocate_extended to take a field name, no typesdrivers/md/dm-vdo/block-map.c drivers/md/dm-vdo/data-vio.c drivers/md/dm-vdo/dedupe.c +14 more+40 -780 replies
2/3dm vdo: remove redundant TYPE argument from vdo_allocate macrodrivers/md/dm-vdo/action-manager.c drivers/md/dm-vdo/block-map.c drivers/md/dm-vdo/dedupe.c +29 more+114 -1980 replies
3/3dm vdo: add __counted_by attribute to a number of structuresdrivers/md/dm-vdo/block-map.h drivers/md/dm-vdo/dedupe.c drivers/md/dm-vdo/indexer/index.h +5 more+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] dm vdo: update struct allocation and add flexible-array annotations

These patches update VDO's structure management to better align with other kernel behavior: using overflow.h macros when computing allocation sizes, and adding __counted_by annotations to structures where appropriate.

Ken Raeburn (3):
dm vdo: update vdo_allocate_extended to take a field name, no types dm vdo: remove redundant TYPE argument from vdo_allocate macro dm vdo: add __counted_by attribute to a number of structures

 drivers/md/dm-vdo/action-manager.c            |  2 +-
 drivers/md/dm-vdo/block-map.c                 | 32 +++-----
 drivers/md/dm-vdo/block-map.h                 |  2 +-
 drivers/md/dm-vdo/data-vio.c                  |  3 +-
 drivers/md/dm-vdo/dedupe.c                    |  8 +-
 drivers/md/dm-vdo/dm-vdo-target.c             | 12 ++-
 drivers/md/dm-vdo/encodings.c                 |  2 +-
 drivers/md/dm-vdo/flush.c                     |  4 +-
 drivers/md/dm-vdo/funnel-queue.c              |  2 +-
 drivers/md/dm-vdo/funnel-workqueue.c          |  8 +-
 drivers/md/dm-vdo/indexer/chapter-index.c     |  2 +-
 drivers/md/dm-vdo/indexer/config.c            |  2 +-
 drivers/md/dm-vdo/indexer/delta-index.c       | 13 ++--
 .../md/dm-vdo/indexer/funnel-requestqueue.c   |  2 +-
 drivers/md/dm-vdo/indexer/geometry.c          |  2 +-
 drivers/md/dm-vdo/indexer/index-layout.c      | 25 +++----
 drivers/md/dm-vdo/indexer/index-page-map.c    |  8 +-
 drivers/md/dm-vdo/indexer/index-session.c     |  2 +-
 drivers/md/dm-vdo/indexer/index.c             | 14 ++--
 drivers/md/dm-vdo/indexer/index.h             |  2 +-
 drivers/md/dm-vdo/indexer/io-factory.c        |  6 +-
 drivers/md/dm-vdo/indexer/open-chapter.c      |  4 +-
 drivers/md/dm-vdo/indexer/open-chapter.h      |  2 +-
 drivers/md/dm-vdo/indexer/radix-sort.c        |  3 +-
 drivers/md/dm-vdo/indexer/sparse-cache.c      | 10 +--
 drivers/md/dm-vdo/indexer/volume-index.c      | 10 +--
 drivers/md/dm-vdo/indexer/volume.c            | 22 +++---
 drivers/md/dm-vdo/int-map.c                   |  5 +-
 drivers/md/dm-vdo/io-submitter.c              |  3 +-
 drivers/md/dm-vdo/logical-zone.c              |  3 +-
 drivers/md/dm-vdo/logical-zone.h              |  2 +-
 drivers/md/dm-vdo/memory-alloc.c              |  8 +-
 drivers/md/dm-vdo/memory-alloc.h              | 74 +++----------------
 drivers/md/dm-vdo/message-stats.c             |  2 +-
 drivers/md/dm-vdo/packer.c                    |  9 +--
 drivers/md/dm-vdo/physical-zone.c             |  8 +-
 drivers/md/dm-vdo/priority-table.c            |  3 +-
 drivers/md/dm-vdo/recovery-journal.c          | 23 +++---
 drivers/md/dm-vdo/repair.c                    | 17 ++---
 drivers/md/dm-vdo/slab-depot.c                | 37 ++++------
 drivers/md/dm-vdo/slab-depot.h                |  2 +-
 drivers/md/dm-vdo/thread-utils.c              |  2 +-
 drivers/md/dm-vdo/vdo.c                       | 32 ++++----
 drivers/md/dm-vdo/vio.c                       | 12 ++-
 44 files changed, 162 insertions(+), 284 deletions(-)
Signature · 1 line
2.53.0