From: Wang Long Date: Thu, 21 May 2015 16:34:22 +0000 (-0700) Subject: fs/pstore: update the backend parameter in pstore module X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42222c2a5d5da7fe4839491d5c44034f40761071;p=linux-beck.git fs/pstore: update the backend parameter in pstore module This patch update the module parameter backend, so it is visible through /sys/module/pstore/parameters/backend. For example: if pstore backend is ramoops, with this patch: # cat /sys/module/pstore/parameters/backend ramoops and without this patch: # cat /sys/module/pstore/parameters/backend (null) Signed-off-by: Wang Long Acked-by: Mark Salyzyn Signed-off-by: Tony Luck --- diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index de525ec0b490..791743deedf1 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -456,6 +456,12 @@ int pstore_register(struct pstore_info *psi) add_timer(&pstore_timer); } + /* + * Update the module parameter backend, so it is visible + * through /sys/module/pstore/parameters/backend + */ + backend = psi->name; + pr_info("Registered %s as persistent store backend\n", psi->name); return 0;