Skip to content

RFC dm headers(2nd): move headers to include/linux

Heinz Mauelshagen dm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6dm headers(2nd): change name of "struct io_region" to "struct dm_io_region" in dm-io.h to prepare for move of the header to include/linux and adjust callers.drivers/md/dm-exception-store.c drivers/md/dm-io.c drivers/md/dm-io.h +5 more+24 -210 replies
2/6dm headers(2nd): change names of kcopyd_client, kcopyd_copy, etc. in kcopyd.h to have "dm_" prefix in order to prepare for move of the header to include/linux and adjust callers.drivers/md/dm-raid1.c drivers/md/dm-snap.c drivers/md/dm-snap.h +2 more+57 -530 replies
3/6dm headers(2nd): change names of "struct dirty_log", dm_create_dirty_log(), etc. in dm-log.h to prepare for move of the header to include/linux and adjust callers.drivers/md/dm-log.c drivers/md/dm-log.h drivers/md/dm-raid1.c+88 -830 replies
4/6dm headers(2nd): rename kcopyd[ch] to dm-kcopyd.[ch], move dm-{io, kcopyd, log}.h to include/linux and adjust callersdrivers/md/Makefile drivers/md/dm-exception-store.c drivers/md/dm-io.c +8 more+724 -9840 replies
5/6dm headers(2nd): adjust Copyright notices and add MODULE_* macrosdrivers/md/dm-exception-store.c drivers/md/dm-io.c drivers/md/dm-kcopyd.c +4 more+20 -90 replies
6/6dm headers(2nd): export dm_disk() so that callers can actually use this external interface functiondrivers/md/dm.c+1 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/6] dm headers(2nd): move headers to include/linux

Hi Alasdair,

this is a refactored series of 6 patches, which move dm-{io,log}.h and kcopyd.h to include/linux, renaming the later to dm-kcopyd.h, to better allow for their interfaces to be sharable beyond the scope of Device-Mapper.

Structure and function identifiers (e.g. io_region -> dm_io_region) get a "dm_", macros a "DM_" prefix respectively.

Existing callers are adjusted to use the new structure/function/macro names.

The Makefile now generates dm-{io,kcopyd,log} as kmods.

dm_disk(), which belongs to our external interface since long time, is exported now to allow for future callers to actually be able to access it.

If acceptable, please apply.