]> www.infradead.org Git - users/dwmw2/linux.git/commit
fs/proc/vmcore: move vmcore definitions out of kcore.h
authorDavid Hildenbrand <david@redhat.com>
Wed, 4 Dec 2024 12:54:36 +0000 (13:54 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Jan 2025 14:39:07 +0000 (09:39 -0500)
commit819403c893551c5e93bf9087d334e01bcab5c6b9
tree5dc22c17a6437e7a6f59edab597807757ee90ab7
parent8e386957cc2d1fb67b65937c771140c1c47445b1
fs/proc/vmcore: move vmcore definitions out of kcore.h

These vmcore defines are not related to /proc/kcore, move them out.

We'll move "struct vmcoredd_node" to vmcore.c, because it is only used
internally. While "struct vmcore" is only used internally for now,
we're planning on using it from inline functions in crash_dump.h next,
so move it to crash_dump.h.

While at it, rename "struct vmcore" to "struct vmcore_range", which is a
more suitable name and will make the usage of it outside of vmcore.c
clearer.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20241204125444.1734652-6-david@redhat.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
fs/proc/vmcore.c
include/linux/crash_dump.h
include/linux/kcore.h