[PATCH 2/2] types: move phys_vec definition to common header
Chaitanya Kulkarni
chaitanyak at nvidia.com
Sat Nov 15 14:25:08 PST 2025
On 11/15/25 08:22, Leon Romanovsky wrote:
> From: Leon Romanovsky<leonro at nvidia.com>
>
> Move the struct phys_vec definition from block/blk-mq-dma.c to
> include/linux/types.h to make it available for use across the kernel.
>
> The phys_vec structure represents a physical address range with a
> length, which is used by the new physical address-based DMA mapping
> API. This structure is already used by the block layer and will be
> needed for DMA phys API users.
>
> Moving this definition to types.h provides a centralized location
> for this common data structure and eliminates code duplication
> across subsystems that need to work with physical address ranges.
>
> Signed-off-by: Leon Romanovsky<leonro at nvidia.com>
Looks good.
Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>
-ck
More information about the Linux-nvme
mailing list