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.wangl...@huawei.com>
---
 fs/pstore/platform.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index c4c9a10..a52c218 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;
-- 
1.8.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to