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)
committerMark Salyzyn <salyzyn@google.com>
Wed, 14 Jan 2015 00:18:42 +0000 (16:18 -0800)
commit6a148888b00dbcb8e76c4ff33b062f6ca5f0cdd9
tree9ea98401ce94788794a398e62a89654a873c8999
parent2e09fe094acd1fb26b9ce242df045ceef042a2a0
pstore: clarify clearing of _read_cnt in ramoops_context

*_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>
Change-Id: I98622b2587ed661884e74a7273cfc92ee99eaae3
fs/pstore/ram.c