Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp654744pxb; Wed, 15 Sep 2021 10:03:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxbZGW//XzcVPTpacP9v5pmW5BIvgeoAtm0QAkjDgvMH8G/h1OMu0tKMA5N3/NmZYVNdhV X-Received: by 2002:a50:ee82:: with SMTP id f2mr1072189edr.15.1631725406305; Wed, 15 Sep 2021 10:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631725406; cv=none; d=google.com; s=arc-20160816; b=fuOMOZ6XC6ztm0jxLKfTcScAzAQMMCsqRaY4b4DcGtQcYvjKCdivY5OX1UqHPpGZmU jvX6+OlhJH9tVsYlGfOYzSGoH+iPbHYlb2b6YfQYEOc1VT/4t1VyVXZxNJuRitpaT1W2 DJVFZ88EJ2Iz0nGECkxu0GmY6ZOw8IPjLOiDQzbE3h+tYLATqNCdQkYpfzaJAs/FlHUE NzDbHE5qcg0pmE/4egKeC6tV9MmAbZmyGJCmvu/bLYAZzr7ORc3FkRbHlbgWKqtV3hxx ckpERBbfSIkfRNXFv7HLrTZWy1t274rS6uDzaGPHida7n58uDo0dPrKL/Kd1QEYrYdms unhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=wi9mCAamg6GIhpGhifYafLKcIVZZ+yMx41pctWAb/6M=; b=HKcEq7U39UeMy0rNec4cBSC3AToBqDDWRLsK4uRRYHdBBhq+XfFcLPoOVVljOKHUpg iTqVyVx+xWCAv3sW+VOYQaSqDcnwafBWszX/S2yJM1x7XJVh6qpDlhYkWKbtoAx6FXWQ omlcsPaBBOLL5e6oQ6rDkrf4OpF+Abc0Yh6/2tiX3Zd7HLgCOslWO0npT/kWoAPNYg1P GAuZO6g4BLK4ncSOf5MzDSOCzNAE09UXCVso5xvtrTR/LEzfhioOmbBpE4xc03k8lZda 7yLy9uZ6eZucp7Pa42Pq/p9gwCbxyl3+hQl2RWwpqAt3uI10N7Up2Yi7uhDadgu/m305 bjHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si595386ejo.520.2021.09.15.10.02.55; Wed, 15 Sep 2021 10:03:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229908AbhIOREL (ORCPT + 99 others); Wed, 15 Sep 2021 13:04:11 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:57617 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230038AbhIOREK (ORCPT ); Wed, 15 Sep 2021 13:04:10 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 18FH2TuF020081 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Sep 2021 13:02:29 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 3862A15C3424; Wed, 15 Sep 2021 13:02:29 -0400 (EDT) Date: Wed, 15 Sep 2021 13:02:29 -0400 From: "Theodore Ts'o" To: NeilBrown Cc: Andrew Morton , Andreas Dilger , "Darrick J. Wong" , Matthew Wilcox , Mel Gorman , linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/6] EXT4: Remove ENOMEM/congestion_wait() loops. Message-ID: References: <163157808321.13293.486682642188075090.stgit@noble.brown> <163157838437.13293.14244628630141187199.stgit@noble.brown> <163168354018.3992.580533638417199797@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <163168354018.3992.580533638417199797@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Sep 15, 2021 at 03:25:40PM +1000, NeilBrown wrote: > Adding gfp_mask to __ext4_journal_start_sb() make perfect sense. > There doesn't seem much point adding one to __ext4_journal_start(), > we can have ext4_journal_start_with_revoke() call > __ext4_journal_start_sb() directly. > But I cannot see what it doesn't already do that. > i.e. why have the inline __ext4_journal_start() at all? > Is it OK if I don't use that for ext4_journal_start_with_revoke()? Sure. I think the only reason why we have __ext4_journal_start() as an inline function at all was for historical reasons. That is, we modified __ext4_journal_start() so that it took a struct super, and instead of changing all of the macros which called __ext4_journal_start(), we named it to be __ext4_journal_start_sb() and added the inline definition of __ext4_journal_start() to avoid changing all of the existing users of __ext4_journal_start(). So sure, it's fine not to use that for ext4_journal_start_with_revoke(), and we probably should clean up the use of __ext4_journal_start() at some point. That's unrelated to your work, though. Cheers, - Ted