Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3703158rwl; Mon, 27 Mar 2023 18:54:29 -0700 (PDT) X-Google-Smtp-Source: AK7set8hMWAwieuaPD0gI8Uhbm0j2CfXWM5eBHWIEpiA4Gymb70pzGI9pwJB/qrOn9MnOjw8ouEw X-Received: by 2002:a05:6a20:6588:b0:db:a5b8:1c5b with SMTP id p8-20020a056a20658800b000dba5b81c5bmr12292542pzh.1.1679968469119; Mon, 27 Mar 2023 18:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679968469; cv=none; d=google.com; s=arc-20160816; b=ggByPy7CYCvGi40E5HtAFnma3/zXILEhJ0C07a1vPBBFjxVyAsIhDvgSbLefLPjokX Oky7H7bUbduVR+Lcd5JDPWCMSrdV7tb3WJoUD7+LqVXCBn9MsAmXe88zIG/vLvKXAb4T 0M1okGlATiQjhygouNtZoYOeP53u8hcSRuYM+AnptjIv6v10yKlwPf+O2s+Lf/pDjZL+ 4bC9xB1/kHdzIexys+JsT41S4v65JduUrnpolAHIK6vKNb7rfLWU+pnLr54NXd2FMXee o4E34wZwjFW6f84czkym3jNU4MgJX9zmwPbJ0hxQeYLcrnWh/4XBsghGGqZfyQKv9TsY u0HQ== 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:dkim-signature; bh=hWmz1DT/D0alorn1x9sz798j2olMoW+klvejJUS31so=; b=GG1H5gQGpnB/boJ+wpd/3ORdxhfEkjryqdY/s0pm2LpWccUVDUC8T8mQTwpGUCrOHk sQsZboy39DOBDI8fibk/JXAmIBMSBFCMRqkxM8ej/ZbwYJ4Ag+z8rX/Hi7wClUAmtayC T87zpqMM0WyF0XESWTWPWDwG9w1+OeDSY/KK4brlmSB6BJsATnE65IzQgkeZn44NkmU+ cElnoR+ijDkKc18Wari7TLA6qU2BID5msIBOlO4FDRDfQKn4Kt0dHNsLcFZwke/OJKP+ 8pwYJy9Pcp99a8E/yxlw2yYZL5IHSZRZ+46AUp9w5Ekq4G1SZRoZRYjPDXfN3XyGOI0o xfJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=SuVjU+6o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 u126-20020a627984000000b0062ae6345c71si8973551pfc.396.2023.03.27.18.54.15; Mon, 27 Mar 2023 18:54:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=SuVjU+6o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232385AbjC1BsB (ORCPT + 99 others); Mon, 27 Mar 2023 21:48:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230379AbjC1Br7 (ORCPT ); Mon, 27 Mar 2023 21:47:59 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18E95101; Mon, 27 Mar 2023 18:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=hWmz1DT/D0alorn1x9sz798j2olMoW+klvejJUS31so=; b=SuVjU+6ofyW0/e9Hj4d6xtgY9F EBK/Nv+s2RuRGdWplvT5uPUxiB9QUmrOoQHgVWozWaedbl2/JFvtogr6P2PJmYSz7ga6B2LAshpEM o+EVshdlpqaNLiu181PNvwJSNYvKMkQliWr1JhaDgD8dG860Dg82St3wXPkM6okZWMYbmJUT/gm+w WIntnXFBF3RYAdbkqfLerbEzC6hN3cjajiAueduYg7k38mETdEDHphsEk3ZLP6ldaUSNlYPZDFpV6 JP0JcQnfap8r+ddpFtxvLWuBkjCLCVVPTeDAEgJ8tHZ11XFd44iNMKci571W6Hjn8RqH46X3bNOBx 7mv1pCpA==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pgyRG-00CopA-0N; Tue, 28 Mar 2023 01:47:54 +0000 Date: Mon, 27 Mar 2023 18:47:54 -0700 From: Christoph Hellwig To: "Darrick J. Wong" Cc: "yebin (H)" , Ye Bin , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH] xfs: fix BUG_ON in xfs_getbmap() Message-ID: References: <20230327140218.4154709-1-yebin@huaweicloud.com> <20230327151524.GC16180@frogsfrogsfrogs> <64224406.5090106@huawei.com> <20230328014328.GG16180@frogsfrogsfrogs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230328014328.GG16180@frogsfrogsfrogs> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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-kernel@vger.kernel.org On Mon, Mar 27, 2023 at 06:43:28PM -0700, Darrick J. Wong wrote: > Seeing as the data fork mappings can change the instant the > ILOCK drops, I'm not /that/ worried about users seeing a delalloc > mapping even if the user requested a flush. The results are already > obsolete when they get to userspace, unless the application software has > found another means to lock out access to the file. That is true, but then again the users asked to not see delalloc mappings, so we really shouldn't report one, right?