summaryrefslogtreecommitdiffstats
path: root/fs/pstore
diff options
context:
space:
mode:
authorWang Long <long.wanglong@huawei.com>2015-05-21 18:34:22 +0200
committerTony Luck <tony.luck@intel.com>2015-05-21 18:34:22 +0200
commit42222c2a5d5da7fe4839491d5c44034f40761071 (patch)
treedd45070e9edff633e6520f2acc835457882683dc /fs/pstore
parentpstore: do not use message compression without lock (diff)
downloadlinux-42222c2a5d5da7fe4839491d5c44034f40761071.tar.xz
linux-42222c2a5d5da7fe4839491d5c44034f40761071.zip
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 <long.wanglong@huawei.com> Acked-by: Mark Salyzyn <salyzyn@android.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'fs/pstore')
-rw-r--r--fs/pstore/platform.c6
1 files changed, 6 insertions, 0 deletions
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;