aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-10-31 11:23:15 -0400
committerTony Luck <tony.luck@intel.com>2015-11-02 16:41:52 -0500
commit306e5c2a3cb45a0256ae6677501d1144e93efa2f (patch)
treed563180332c532c1ad6268ca6de18b1bf89b27b5
parenta07e744960b86a1914667bcf28b5f144213bb3d8 (diff)
pstore: fix code comment to match code
Fix code comment about kmsg_dump register so it matches the code. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r--fs/pstore/platform.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index 0aab920efff7..588461bb2dd4 100644
--- a/fs/pstore/platform.c
+++ b/fs/pstore/platform.c
@@ -361,6 +361,9 @@ static struct kmsg_dumper pstore_dumper = {
361 .dump = pstore_dump, 361 .dump = pstore_dump,
362}; 362};
363 363
364/*
365 * Register with kmsg_dump to save last part of console log on panic.
366 */
364static void pstore_register_kmsg(void) 367static void pstore_register_kmsg(void)
365{ 368{
366 kmsg_dump_register(&pstore_dumper); 369 kmsg_dump_register(&pstore_dumper);
@@ -434,8 +437,6 @@ static int pstore_write_compat(enum pstore_type_id type,
434 * read function right away to populate the file system. If not 437 * read function right away to populate the file system. If not
435 * then the pstore mount code will call us later to fill out 438 * then the pstore mount code will call us later to fill out
436 * the file system. 439 * the file system.
437 *
438 * Register with kmsg_dump to save last part of console log on panic.
439 */ 440 */
440int pstore_register(struct pstore_info *psi) 441int pstore_register(struct pstore_info *psi)
441{ 442{