Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp932388ybp; Thu, 17 Oct 2019 05:48:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqydiG6J4OPwe/UjKDjhXiGk0dootp255vXk+GszDkPo51iED7e+rqPImQ8yVVgvhgai8auv X-Received: by 2002:a05:6402:1252:: with SMTP id l18mr3573867edw.64.1571316534735; Thu, 17 Oct 2019 05:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571316534; cv=none; d=google.com; s=arc-20160816; b=tEadmg610kw+qdJfIvgLZVANiIF0Fu07rFuZC1AL+1B+ujcyDNqxDF65p9LRdHNd8H SClRU7B33B6c3HcKstIdMUKTxgYynrpcp1JqID+EaUxX/7y7QkJim53dXViHmMdgwHU1 PDD+xu575RMtr9Hhkk228EfMxF8r7Ohm5yaRBZIJ+xZdCQc2FGy4zw3vz84pzul48En2 32e9EQZlH4YdeBZky4Juy1G9YlV1SSCg6Nx+V4OgU8k4BLnKV8+jrMIcfEVnn3Of03Un 1HjtePQVTx3+4XlDEfFA5J4EW37nH20+BmWY4BQX/gLvRnV8mwz3RgUuBBMGpA0vhgEx i9lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=EpFjCs7PCZZ/VOdJ7zQztTtvpY//efEypfMx8GoDbi8=; b=gD448VcHrn2sUzhqxJT8YaeItvr8UPMwW+MVZxyw8NcCSKnjyBizYTl6+O6lxHao61 Pa1tFecMY0ptD+kMbuMm+rmhoBZCA32iQ0bXkHQBg642Au7tIyJcYoURsZoXJ7tmF3lq WDFj7pQ42mNbbyP4bKdCOgaVYfrSv7WUKKaQOh+vx9UP/PqvqfgkKh2RjyUBFDm2ZioE pa0YCetvK2+CVVGj5AXjuM6hUqVH3KmIm0y7SYZRfBFo0n+S4vqnWPHaYYSgkiYoFJoq AdDnzVsf9j7yjat/mKltQoTzcsLrBnNuXQQarWu5tPcHwELmTDEZdl6PimcTp0ZnMugY AbKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ca4si1329976ejb.39.2019.10.17.05.48.30; Thu, 17 Oct 2019 05:48:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729263AbfJPRan (ORCPT + 99 others); Wed, 16 Oct 2019 13:30:43 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:41036 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728901AbfJPRan (ORCPT ); Wed, 16 Oct 2019 13:30:43 -0400 Received: from callcc.thunk.org (guestnat-104-133-0-98.corp.google.com [104.133.0.98] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x9GHUd72005593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Oct 2019 13:30:40 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 1BF94420458; Wed, 16 Oct 2019 13:30:39 -0400 (EDT) Date: Wed, 16 Oct 2019 13:30:39 -0400 From: "Theodore Y. Ts'o" To: Harshad Shirwadkar Cc: linux-ext4@vger.kernel.org Subject: Re: [PATCH v3 05/13] jbd2: fast-commit recovery path changes Message-ID: <20191016173039.GE11103@mit.edu> References: <20191001074101.256523-1-harshadshirwadkar@gmail.com> <20191001074101.256523-6-harshadshirwadkar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191001074101.256523-6-harshadshirwadkar@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Oct 01, 2019 at 12:40:54AM -0700, Harshad Shirwadkar wrote: > diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c > index 14d549445418..e0684212384d 100644 > --- a/fs/jbd2/journal.c > +++ b/fs/jbd2/journal.c > > jbd2_write_superblock(journal, write_op); > > + if (had_fast_commit) > + jbd2_set_feature_fast_commit(journal); > + Why the logic with had_fast_commit and (re-)setting the fast commit feature flag? This ties back to how we handle the logic around setting the fast commit flag if requested by the file system.... > @@ -768,6 +816,8 @@ static int do_one_pass(journal_t *journal, > if (err) > goto failed; > continue; > + case JBD2_FC_BLOCK: > + continue; Why should a Fast Commit block ever show up in the primary part of the journal? It should never happen, right? In which case, we should probably at least issue a warning, and not just skip the block. - Ted