Skip to content

RFC dm headers: 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 Latest13 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13dm headers: move headers of modules dm-io, dm-log and kcopyd to include/linux to allow for sharing; rename kcopyd.h to dm-kcopyd.h to be consistent with other dm header prefixesdrivers/md/dm-io.h drivers/md/dm-log.h drivers/md/kcopyd.h +3 more+252 -2520 replies
2/13dm headers: Adjust dm-[io, kcopyd, log}.h by prefixing identifiers with "dm_"include/linux/dm-io.h include/linux/dm-kcopyd.h include/linux/dm-log.h+56 -470 replies
3/13dm headers: adjust for dm_kcopyd_client structure namedrivers/md/dm-snap.h+3 -40 replies
4/13dm headers: adjust for new structure namesdrivers/md/dm-io.c+10 -70 replies
5/13dm headers: rename kcopyd.c to dm-kcopyd.c to be consistent with other Device-Mapper file namesdrivers/md/dm-kcopyd.c drivers/md/kcopyd.c+708 -7080 replies
6/13dm headers: adjust dm-kcopyd identifiers to have "dm_" prefixdrivers/md/dm-kcopyd.c+28 -260 replies
7/13dm headers: adjust Copyrightdrivers/md/dm-kcopyd.c+1 -10 replies
8/13dm headers: adjust dm-log identifiers to have "dm_" prefixdrivers/md/dm-log.c+53 -500 replies
9/13dm headers: adjust dm-raid1 identifiers to have "dm_" prefixdrivers/md/dm-raid1.c+37 -360 replies
10/13dm headers: adjust dm-snap identifiers to have "dm_" prefixdrivers/md/dm-snap.c+17 -170 replies
11/13dm headers: adjust dm-exception-store identifiers to have "dm_" prefixdrivers/md/Makefile drivers/md/dm-exception-store.c+8 -90 replies
12/13dm headers: adjust Makefile for dm-{io, log, kcopyd} standalone modulesdrivers/md/Makefile+3 -30 replies
13/13dm headers: 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/13] dm headers: move headers to include/linux

Hi Alasdair,

this is a series of 13 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.
This potentially needs a future change in case of a static kernel *and* more callers sharing the dm-{io,kcopyd,log} modules.

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.