From: Hin-Tak Leung Subject: [PATCH 0/2] two patches about B-tree corruptions in hfs and hfsplus Date: Sun, 28 Jun 2015 02:39:28 +0100 Message-ID: <1435455570-8577-1-git-send-email-HinTak.Leung@gmail.com> Cc: Hin-Tak Leung To: linux-fsdevel@vger.kernel.org Return-path: Received: from mail-wg0-f49.google.com ([74.125.82.49]:33564 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751930AbbF1Bjf (ORCPT ); Sat, 27 Jun 2015 21:39:35 -0400 Received: by wgck11 with SMTP id k11so115186039wgc.0 for ; Sat, 27 Jun 2015 18:39:34 -0700 (PDT) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Hin-Tak Leung At least 4 people had expressed concerns about the clarity of the patch description of Sergei Antonov's "hfsplus: release bnode pages after use, not before"; but also at least two people (me and Anton Altaparmakov) besides Sergei really think the issue addressed by the patch is important to fix and should be fixed soon. So here is an attempt to write a different and hopefully clearer patch description. Along the way, I also think it would be a good idea to keep the hfs and hfsplus code in sync where it is obvious to do so, so the first patch is a combo hfs+hfsplus one, but otherwise functionally identical to Sergei's. The 2nd patch is an hfs follow-up to a previous hfsplus change. Hin-Tak Leung (2): hfs,hfsplus: cache pages correctly between bnode_create and bnode_free hfs: fix B-tree corruption after insertion at position 0 fs/hfs/bnode.c | 9 ++++----- fs/hfs/brec.c | 20 +++++++++++--------- fs/hfsplus/bnode.c | 3 --- 3 files changed, 15 insertions(+), 17 deletions(-) -- 2.4.3