diff options
author | Damien Le Moal | 2021-05-26 06:24:59 +0900 |
---|---|---|
committer | Mike Snitzer | 2021-06-04 12:07:37 -0400 |
commit | e2118b3c3d94289852417f70ec128c25f4833aad (patch) | |
tree | 187b3c2a61514e9139f77057332a4c242465ac20 /COPYING | |
parent | 9ffbbb435d8f566a0924ce4b5dc7fc1bceb6dbf8 (diff) |
dm: rearrange core declarations for extended use from dm-zone.c
Move the definitions of struct dm_target_io, struct dm_io and the bits
of the flags field of struct mapped_device from dm.c to dm-core.h to
make them usable from dm-zone.c. For the same reason, declare
dec_pending() in dm-core.h after renaming it to dm_io_dec_pending().
And for symmetry of the function names, introduce the inline helper
dm_io_inc_pending() instead of directly using atomic_inc() calls.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions