[Kernel] [PATCH OpenHarmony-4.19 31/49] pstore/ram: Refactor ftrace buffer merging