Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42222c2a authored by Wang Long's avatar Wang Long Committed by Tony Luck
Browse files

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: default avatarWang Long <long.wanglong@huawei.com>
Acked-by: default avatarMark Salyzyn <salyzyn@android.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent f0e2efcf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;