Skip to content

Ingest several minor upstream patches#438

Merged
lorelei-sakai merged 8 commits intodm-vdo:mainfrom
lorelei-sakai:ingest/minor-upstream-patches-6.19
Apr 13, 2026
Merged

Ingest several minor upstream patches#438
lorelei-sakai merged 8 commits intodm-vdo:mainfrom
lorelei-sakai:ingest/minor-upstream-patches-6.19

Conversation

@lorelei-sakai
Copy link
Copy Markdown
Member

This is an attempt to reduce skew between vdo-devel and dm-linux repositories, and the upstream kernel.

The first two patches pull in some kernel updates related to min_heap required by the third commit, commits 3-7 are small patches applied upstream that we haven't ingested yet, and patch 8 is another userspace adjustment to support patch 7.

lorelei-sakai and others added 8 commits April 9, 2026 22:07
This ingests the vdo portion of upstream commit
92a8b224b833 ("lib/min_heap: introduce non-inline
versions of min heap API functions"). This was
applied manually because we don't track the Kconfig
except in the overlay tool directory.

Signed-off-by: Matthew Sakai <msakai@redhat.com>
To support the latest vdo min_heap changes, update
our fake min_heap.[ch] with the latest version from
the kernel. This version has been stable since about
kernel 6.13, which is old enough we don't need to
bother doing version checks.

Also remove version checks related to min_heap from
repair.c and slab-depot.c, and add a blank line to
the former that got added when upstreaming previously.

Signed-off-by: Matthew Sakai <msakai@redhat.com>
Replace the swp function pointer in the min_heap_callbacks of dm-vdo with
NULL, allowing direct usage of the default builtin swap implementation.
This modification simplifies the code and improves performance by removing
unnecessary function indirection.

Link: https://lkml.kernel.org/r/20241020040200.939973-7-visitorckw@gmail.com
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Ching-Chun (Jim) Huang <jserv@ccns.ncku.edu.tw>
Cc: Coly Li <colyli@suse.de>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: "Liang, Kan" <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Matthew Sakai <msakai@redhat.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
dm-vdo docs currently has no explicit title heading but instead there
are multiple section headings as top-level heading. As such, these
sections are rendered as titles and inflates number of entries in the
toctree index.

Promote the first section heading ("dm-vdo") to title heading.

Fixes: 04bf7ac646ab ("dm: add documentation for dm-vdo target")
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
There is no function advance_compression_stage().  But
advance_data_vio_compression_stage() does iterate through
the values of the data_vio_compression_stage enum, so it
seems to be what was intended.

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
There is a spelling mistake in a vdo_log_error message. Fix it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Use the typed random integer helpers instead of
get_random_bytes() when filling a single integer variable.
The helpers return the value directly, require no pointer
or size argument, and better express intent.

Signed-off-by: David Carlier <devnexen@gmail.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
This supports the previous upstream patch.

Signed-off-by: Matthew Sakai <msakai@redhat.com>
@lorelei-sakai lorelei-sakai merged commit c038ce7 into dm-vdo:main Apr 13, 2026
7 checks passed
@lorelei-sakai lorelei-sakai deleted the ingest/minor-upstream-patches-6.19 branch April 13, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants