mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wang Long <long.wanglong@huawei.com>
To: <keescook@chromium.org>, <ccross@android.com>, <anton@enomsg.org>,
	<tony.luck@intel.com>
Cc: <linux-kernel@vger.kernel.org>, <long.wanglong@huawei.com>,
	<peifeiyue@huawei.com>, <marco.stornelli@gmail.com>,
	<anton.vorontsov@linaro.org>, <salyzyn@android.com>,
	<sergiu@chromium.org>, <morgan.wang@huawei.com>
Subject: [PATCH] fs/pstore: update the backend parameter in pstore module
Date: Thu, 26 Mar 2015 10:08:54 +0000	[thread overview]
Message-ID: <1427364534-136269-1-git-send-email-long.wanglong@huawei.com> (raw)

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>
---
 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


             reply	other threads:[~2015-03-26 10:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-26 10:08 Wang Long [this message]
2015-03-26 15:48 ` Mark Salyzyn
2015-05-04  9:27   ` long.wanglong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1427364534-136269-1-git-send-email-long.wanglong@huawei.com \
    --to=long.wanglong@huawei.com \
    --cc=anton.vorontsov@linaro.org \
    --cc=anton@enomsg.org \
    --cc=ccross@android.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marco.stornelli@gmail.com \
    --cc=morgan.wang@huawei.com \
    --cc=peifeiyue@huawei.com \
    --cc=salyzyn@android.com \
    --cc=sergiu@chromium.org \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®