]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pstore: clarify clearing of _read_cnt in ramoops_context
authorLiu ShuoX <shuox.liu@intel.com>
Mon, 17 Mar 2014 00:24:49 +0000 (11:24 +1100)
committerJiri Slaby <jslaby@suse.cz>
Sun, 8 Feb 2015 19:02:05 +0000 (20:02 +0100)
commit42ecc20bee44d55eb266116e9101bca9f7d6637a
tree9304b5c021804d3cbd7e09e248c004c24dd5044a
parent51173bf8141d0dc740689b99ce88721e568eec39
pstore: clarify clearing of _read_cnt in ramoops_context

commit 57fd835385a043577457a385f28c08be693991bf upstream.

*_read_cnt in ramoops_context need to be cleared during pstore ->open to
support mutli times getting the records.  The patch added missed
ftrace_read_cnt clearing and removed duplicate clearing in ramoops_probe.

Signed-off-by: Liu ShuoX <shuox.liu@intel.com>
Cc: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
Cc: Colin Cross <ccross@android.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Cc: HuKeping <hukeping@huawei.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/pstore/ram.c