Subject: + pstore-reset-ftrace_read_cnt-at-ramoops_pstore_open.patch added to -mm tree To: shuox.liu@xxxxxxxxx,ccross@xxxxxxxxxxx,keescook@xxxxxxxxxxxx,tony.luck@xxxxxxxxx,yanmin_zhang@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Tue, 04 Mar 2014 13:50:25 -0800 The patch titled Subject: pstore: reset ftrace_read_cnt at ramoops_pstore_open has been added to the -mm tree. Its filename is pstore-reset-ftrace_read_cnt-at-ramoops_pstore_open.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/pstore-reset-ftrace_read_cnt-at-ramoops_pstore_open.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/pstore-reset-ftrace_read_cnt-at-ramoops_pstore_open.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Liu ShuoX <shuox.liu@xxxxxxxxx> Subject: pstore: reset ftrace_read_cnt at ramoops_pstore_open ftrace_read_cnt need to be reset in open to support mutli times getting the records. Signed-off-by: Liu ShuoX <shuox.liu@xxxxxxxxx> Cc: "Zhang, Yanmin" <yanmin_zhang@xxxxxxxxxxxxxxx> Cc: Colin Cross <ccross@xxxxxxxxxxx> Cc: Kees Cook <keescook@xxxxxxxxxxxx> Cc: "Luck, Tony" <tony.luck@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/pstore/ram.c | 1 + 1 file changed, 1 insertion(+) diff -puN fs/pstore/ram.c~pstore-reset-ftrace_read_cnt-at-ramoops_pstore_open fs/pstore/ram.c --- a/fs/pstore/ram.c~pstore-reset-ftrace_read_cnt-at-ramoops_pstore_open +++ a/fs/pstore/ram.c @@ -101,6 +101,7 @@ static int ramoops_pstore_open(struct ps cxt->dump_read_cnt = 0; cxt->console_read_cnt = 0; + cxt->ftrace_read_cnt = 0; return 0; } _ Patches currently in -mm which might be from shuox.liu@xxxxxxxxx are pstore-reset-ftrace_read_cnt-at-ramoops_pstore_open.patch pstore-skip-zero-size-persistent-ram-buffer-in-traverse.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html