Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1290089rwl; Thu, 10 Aug 2023 09:02:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4HfFkiZzve8qYzHwunf53QTxQrGGpZ0DYyuzdkfReu7TQzfCMcNeRvczXFFtsY/Pcs8IR X-Received: by 2002:a05:6a21:3387:b0:12f:c0c1:d70 with SMTP id yy7-20020a056a21338700b0012fc0c10d70mr3616880pzb.40.1691683378812; Thu, 10 Aug 2023 09:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691683378; cv=none; d=google.com; s=arc-20160816; b=PF4ly3GhXYFXDvA/tajWeBv+nF6nNDwP7FVfiyhuneuwyohlbWyxRGFg5bAr5IyZPG dChsB7iSsCNrRd4qYb6E3l3rujUZ0pG+pU/alaUgA/NXqXf3oF39G7ydBnlwuZCfYlfL 2LLjiQHF04xMiEJxmbW4H619MtRSx1mhGSHucrvWXbM5NTeG4xkq0XL+pDc7nViMG8fP vyGVtig0/jq0SWsSUjZ0Ppmsk30AkrX0Zztj3o08D+nJEmcgccz3BaSpuGiOY+beUYLo kMIwhIxLAYu+cIaX4Tlpx+YBUjyatG4h8YrOBtumr6ApQX+1PXuZMAKl/FxnOUFAZqoO AMHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zuKYWIfHgGxg2Otph90KtmuMt0ntaUbR2PZsjNbJRqg=; fh=v+zjE1HM2dOJtdKydei7VDPf0Fd1YDSDavqlxwJaazc=; b=ILGAAoMz9fd6vTdC/4Dui5QCs52/crXorKLcIMMIN0kwXrfLyr49dfMkJynzxCeOyQ 87ETpGUNYqQ2CGeJH67T6eiauq1yVWmM+ncCPlGbgB6MgzZsmlOR5ixhM2c6uoNLD7Lw u7mRkxSKjwwum+hotzFivbuLq92asEZQqflgGg6T/DBdIReYzSaeAAPoL8vupjfxXv/3 UyTBcYlfipf9xicgxMF6U9VGdyjDQLfDnezt5cAWx/0lzHaF1U8pSzahQpCXAZJGlIGO Og1BWJT9Ey9jcvFEfbnGXiZKZJ94qm3Xw7D3AIOkpX8Ol/IjkjFY9G96MfIRuaytxAfj XDfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w70-20020a638249000000b005633d1402a2si1760088pgd.440.2023.08.10.09.02.41; Thu, 10 Aug 2023 09:02:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232883AbjHJPyQ (ORCPT + 99 others); Thu, 10 Aug 2023 11:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236256AbjHJPxy (ORCPT ); Thu, 10 Aug 2023 11:53:54 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F0BA2703; Thu, 10 Aug 2023 08:53:53 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 0242267373; Thu, 10 Aug 2023 17:53:51 +0200 (CEST) Date: Thu, 10 Aug 2023 17:53:50 +0200 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , Al Viro , Christian Brauner , Namjae Jeon , Sungjong Seo , Theodore Ts'o , Andreas Dilger , Konstantin Komarov , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, ntfs3@lists.linux.dev, linux-xfs@vger.kernel.org Subject: Re: [PATCH 07/13] xfs: document the invalidate_bdev call in invalidate_bdev Message-ID: <20230810155350.GE28000@lst.de> References: <20230809220545.1308228-1-hch@lst.de> <20230809220545.1308228-8-hch@lst.de> <20230809223923.GX11352@frogsfrogsfrogs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230809223923.GX11352@frogsfrogsfrogs> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Aug 09, 2023 at 03:39:23PM -0700, Darrick J. Wong wrote: > > + * read from the same page in the pagecache. > > + * > > + * The unmount writes updated inode metadata to disk directly. The XFS > > + * buffer cache does not use the bdev pagecache, nor does it invalidate > > + * the pagecache on umount. If the above scenario occurs, the pagecache > > This sentence reads a little strangely, since "nor does it invalidate" > would seem to conflict with the invalidate_bdev call below. I suggest > changing the verb a bit: > > "The XFS buffer cache does not use the bdev pagecache, so it needs to > invalidate that pagecache on unmount." Agreed. I'll forward it to the original author of the sentence time permitting :)