From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from cantor2.suse.de ([195.135.220.15] helo=mx2.suse.de) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YTolA-0002E1-Iw for kexec@lists.infradead.org; Fri, 06 Mar 2015 09:41:34 +0000 Message-Id: From: Petr Tesarik Date: Fri, 6 Mar 2015 10:31:30 +0100 Subject: [PATCH 0/4] Clean up makedumpfile cache handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Atsushi Kumagai , Michael Holzheu Cc: kexec mailing list , Jan Willeke The cache code is somewhat clumsy. This patch series tries to clean up the code and clarify the concept, especially the meaning of the pending list (allocated cache entries whose content is not yet valid). The last patch adds some basic statistics to the final report. Petr Tesarik (4): cache: get rid of search loop in cache_add() cache: allow to return a page to the pool cache: do not allocate from the pending list cache: add hit/miss statistics to the final report cache.c | 46 +++++++++++++++++++--------------------------- cache.h | 11 +++++++++-- makedumpfile.c | 29 ++++++++++++++++++++++------- 3 files changed, 50 insertions(+), 36 deletions(-) -- 1.8.4.5 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec