blkmap: store type of blkmap slice in corresponding structure
authorSughosh Ganu <sughosh.ganu@linaro.org>
Mon, 17 Mar 2025 08:34:00 +0000 (14:04 +0530)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 26 Mar 2025 11:28:08 +0000 (13:28 +0200)
commit45c398028283c73ea24be20a0d0e120d3cd3e850
tree4cd36926704ee83ce88d5d3af30c7ccf18063a57
parentfc82cf66d05f61339abb5f8e5bfc83647dbf96cf
blkmap: store type of blkmap slice in corresponding structure

Add information about the type of blkmap slices as an attribute in the
corresponding slice structure. Put information in the blkmap slice
structure to identify if it is associated with a memory or linear
mapped device. Which can then be used to take specific action based on
the type of the blkmap slice.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/block/blkmap.c