]> git.ipfire.org Git - thirdparty/linux.git/commit
dm vdo: add geometry block structure
authorBruce Johnston <bjohnsto@redhat.com>
Tue, 24 Mar 2026 18:06:49 +0000 (14:06 -0400)
committerMikulas Patocka <mpatocka@redhat.com>
Thu, 26 Mar 2026 17:18:55 +0000 (18:18 +0100)
commitb5d1f45c5fea9fa112f0dddebd95fadad06d3bd8
tree1bc55cdf76b3f48a5a9f6d2104824c5c615d56e3
parent427bf2c1f77435b36749a03e4f9d4549e3807e2d
dm vdo: add geometry block structure

Introduce a vdo_geometry_block structure, containing a vio and buffer,
mirroring the existing vdo_super_block structure. Both are now
initialized at VDO startup and freed at shutdown, establishing the
infrastructure needed to read and write the geometry block using the
same mechanisms as the super block.

Refactor read_geometry_block() to use the new structure.

Signed-off-by: Bruce Johnston <bjohnsto@redhat.com>
Reviewed-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-vdo/vdo.c
drivers/md/dm-vdo/vdo.h