pstore: add pstore unregister
authorGeliang Tang <geliangtang@163.com>
Tue, 20 Oct 2015 07:39:03 +0000 (00:39 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 22 Oct 2015 15:59:18 +0000 (08:59 -0700)
commitee1d267423a1f8041e2b1a33fc23e4393c67677e
treeb53cdedcdc8f6a7b36f0342814b91005ce4955ea
parent1873041152d2e324e25ddeec5541b90c22c2dc0f
pstore: add pstore unregister

pstore doesn't support unregistering yet. It was marked as TODO.
This patch adds some code to fix it:
 1) Add functions to unregister kmsg/console/ftrace/pmsg.
 2) Add a function to free compression buffer.
 3) Unmap the memory and free it.
 4) Add a function to unregister pstore filesystem.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: Kees Cook <keescook@chromium.org>
[Removed __exit annotation from ramoops_remove(). Reported by Arnd Bergmann]
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/Kconfig
fs/pstore/Makefile
fs/pstore/ftrace.c
fs/pstore/inode.c
fs/pstore/internal.h
fs/pstore/platform.c
fs/pstore/pmsg.c
fs/pstore/ram.c
include/linux/pstore.h
kernel/printk/printk.c