pstore/ram: Move pmsg init earlier
authorKees Cook <keescook@chromium.org>
Tue, 11 Oct 2022 20:01:09 +0000 (13:01 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 17 Oct 2022 20:14:32 +0000 (13:14 -0700)
commit6daf4e82bd54ef004ace4dd6deed60a32c282a95
treedcf09a35d0f1d56e0fe4f9b5a77c17e7016b3d99
parent3219122b8cdd580f0793e803d4e80ecd7384cf17
pstore/ram: Move pmsg init earlier

Since the ftrace area can vary in size based on CPU count, move pmsg
initialization earlier so it will have a stable location.

Suggested-by: Paramjit Oberoi <pso@chromium.org>
Cc: Anton Vorontsov <anton@enomsg.org>
Cc: Colin Cross <ccross@android.com>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed: Guilherme G. Piccoli <gpiccoli@igalia.com>
Link: https://lore.kernel.org/r/20221011200112.731334-3-keescook@chromium.org
fs/pstore/ram.c