From: Jan Kara Subject: [PATCH 0/8 v3] Checkpointing fixes and cleanups Date: Wed, 15 Feb 2012 19:34:06 +0100 Message-ID: <1329330854-14237-1-git-send-email-jack@suse.cz> Cc: linux-ext4@vger.kernel.org To: Ted Tso Return-path: Received: from cantor2.suse.de ([195.135.220.15]:54090 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753403Ab2BOSek (ORCPT ); Wed, 15 Feb 2012 13:34:40 -0500 Sender: linux-ext4-owner@vger.kernel.org List-ID: Hello, this is a third round of my checkpointing fixes. The patch set is primarily aimed at fixing filesystem corruption happening occasionally (rather rarely) after power failure. First three patches should fix the issue. Patches 4-7 are assorted checkpointing cleanups I've gathered when inspecting checkpointing code. Finally patch 8 is a possible speedup of checkpoining - we can use cache flushes happening during transaction commits for pushing the journal tail safely. The observable speedup is disputable since jbd2_cleanup_journal_tail() is called rather rarely (for metadata heavy load I saw about one jbd2_cleanup_journal_tail() for about 200 commits) so the cost of additional cache flush will be likely in the noise. But the patch is simple enough so I send it for others to judge whether it makes sense or not. Changes since v2: Rewrote the code pushing log tail to fix race described by Ted. Improved some comments Honza