pstore: cleanups to pstore_dump()
authorTony Luck <tony.luck@intel.com>
Tue, 22 Mar 2011 23:01:49 +0000 (16:01 -0700)
committerTony Luck <tony.luck@intel.com>
Tue, 22 Mar 2011 23:01:49 +0000 (16:01 -0700)
commit9f6af27fb693c633cc46d36fc1d85efe6d6fbc17
treed5474b26be0995dbe650dcd0be79a9f046335315
parenteddecbb601c9ea3fab7e67d7892010fc9426d1e6
pstore: cleanups to pstore_dump()

pstore_dump() can be called with many different "reason" codes. Save
the name of the code in the persistent store record.

Also - only worthwhile calling pstore_mkfile for KMSG_DUMP_OOPS - that
is the only one where the kernel will continue running.

Reviewed-by: Seiji Aguchi <seiji.aguchi@hds.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/platform.c