From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1BBCC46CA1 for ; Wed, 18 Oct 2023 14:33:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345802AbjJROdE (ORCPT ); Wed, 18 Oct 2023 10:33:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345424AbjJROcu (ORCPT ); Wed, 18 Oct 2023 10:32:50 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F15BD6FBF; Wed, 18 Oct 2023 07:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=glPK2nMlq3eHDbWVN7H4C3ISIh1VNxtl/70uXeL9vlY=; b=Ibs+RNxU+J51GkYsnDaoEWnUiP luhtw2e3kMrs3u4Fzqd+KhmRb87sI1fUxfxufl6IDoWLh8ZH5+1jcC2+LdgtGMS3Ep1r+8rkrFcmf 3RG/aq07vRBh6yJGuf3wfIbGtb++ObXL076PGk6duum97gslZBZpW2IIDEvlvMvBe8ibsoKed6PSh lTZBRNnx5TnhfSlAgL6Nl5A1AZdAbKUZYIpacxJH+XinPssyhI4K0tp2v+gTKpvQpx6V3fHkKLb7W 1snV5MuO5HKVjY8+kEs2509Dd4asRWcbVnaTg8CoaA5x5efBzrRlF4p4o/t88DcfOB4IXDeXqIolS 1tLPjCZQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qt7O2-001KzI-8R; Wed, 18 Oct 2023 14:19:02 +0000 Date: Wed, 18 Oct 2023 15:19:02 +0100 From: Matthew Wilcox To: Ryusuke Konishi Cc: Andrew Morton , linux-fsdevel@vger.kernel.org, gfs2@lists.linux.dev, linux-nilfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ntfs3@lists.linux.dev, ocfs2-devel@lists.linux.dev, reiserfs-devel@vger.kernel.org, linux-ext4@vger.kernel.org, Pankaj Raghav Subject: Re: [PATCH v2 01/27] buffer: Return bool from grow_dev_folio() Message-ID: References: <20231016201114.1928083-1-willy@infradead.org> <20231016201114.1928083-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-nilfs@vger.kernel.org On Wed, Oct 18, 2023 at 04:41:44AM +0900, Ryusuke Konishi wrote: > On Tue, Oct 17, 2023 at 5:11 AM Matthew Wilcox (Oracle) wrote: > > > > Rename grow_dev_page() to grow_dev_folio() and make it return a bool. > > Document what that bool means; it's more subtle than it first appears. > > Also rename the 'failed' label to 'unlock' beacuse it's not exactly > > 'failed'. It just hasn't succeeded. > > This changes the return type of grow_buffers() from "int" to "bool". > But, it seems that the caller, __getblk_slow(), has not changed the > type of the variable "ret" that receives its return value: [...] > > So, it looks like the error check immediately after calling > grow_buffers() will not branch like before. > Is this okay ? Or, am I missing some other changes? > > Also, there is a typo in the changelog: "beacuse" -> "because". Argh, yes. Andrew, please drop this patch for now. I'll submit something better next cycle.