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-Tag: v4.14-rc1~5197^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42222c2a5d5da7fe4839491d5c44034f40761071;p=platform%2Fkernel%2Flinux-rpi.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 de525ec..791743d 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;