]> git.ipfire.org Git - thirdparty/linux.git/commit
dm vdo: add deduplication index storage interface
authorMatthew Sakai <msakai@redhat.com>
Fri, 17 Nov 2023 00:52:09 +0000 (19:52 -0500)
committerMike Snitzer <snitzer@kernel.org>
Tue, 20 Feb 2024 18:43:14 +0000 (13:43 -0500)
commitb46d79bdb82aa12bf1101c1a38f0233cefe94cb1
tree1a450ddf56ad1b396472cfe2c84155f4b0b1050d
parent4390aa138b61cf257989e1f0a0deb53e46adae96
dm vdo: add deduplication index storage interface

This patch adds infrastructure for managing reads and writes to the
underlying storage layer for the deduplication index. The deduplication
index uses dm-bufio for all of its reads and writes, so part of this
infrastructure is managing the various dm-bufio clients required. It also
adds the buffered reader and buffered writer abstractions, which simplify
reading and writing metadata structures that span several blocks.

This patch also includes structures and utilities for encoding and decoding
all of the deduplication index metadata, collectively called the index
layout.

Co-developed-by: J. corwin Coburn <corwin@hurlbutnet.net>
Signed-off-by: J. corwin Coburn <corwin@hurlbutnet.net>
Co-developed-by: Michael Sclafani <dm-devel@lists.linux.dev>
Signed-off-by: Michael Sclafani <dm-devel@lists.linux.dev>
Co-developed-by: Thomas Jaskiewicz <tom@jaskiewicz.us>
Signed-off-by: Thomas Jaskiewicz <tom@jaskiewicz.us>
Co-developed-by: John Wiele <jwiele@redhat.com>
Signed-off-by: John Wiele <jwiele@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-vdo/index-layout.c [new file with mode: 0644]
drivers/md/dm-vdo/index-layout.h [new file with mode: 0644]
drivers/md/dm-vdo/io-factory.c [new file with mode: 0644]
drivers/md/dm-vdo/io-factory.h [new file with mode: 0644]
drivers/md/dm-vdo/numeric.h [new file with mode: 0644]