Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp227021lqa; Fri, 26 Apr 2024 23:11:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhqZy8LnyJVtibvMMu2QlfbEN6PBzDXNR1dqhCFiPH2ird/C9gfhBy58UvVm2g/k0bdsJevdbwzyQ/7hd9wR97zH+E5eKg0+xES/VQLQ== X-Google-Smtp-Source: AGHT+IHHEP4NRoG2JV+znTXYgecMf0F1Lv/RdzQiATnhHLgtMQ4KCteRwC6v8lbxD8I+avzqd2zg X-Received: by 2002:a17:906:278b:b0:a58:c239:48b5 with SMTP id j11-20020a170906278b00b00a58c23948b5mr1048654ejc.59.1714198315852; Fri, 26 Apr 2024 23:11:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714198315; cv=pass; d=google.com; s=arc-20160816; b=ydl8uFKFaxFpIHqAhjHuaWWx/xUU/PV7qwa8pNQ7ovc+10qgUA4A4kjvEuVrQMDZPF 3fX7Oory2OP27oLVuOcj+dCvQ60mjiu1lbX7f591IVgtRMwCV3pq9hg3Dj9R67FN0knN 0SGga+G7D5dFRiW40OLVtOkqtYe6aaPMY0DsV8bN/LSFEzQdQQmIX2SygKJx2H/ng3wQ PwRMXSLq69AAysXCkhMavqOF51Bif4QxQ/XRbZhxl6Y7qWqO1yr6r5Z/Fgq8dgsDm1I2 lgM8/4jGcGaE8BeuodknSkT82v56wK1g0PsHTcsbJwgkoDb4m/hCgsSS9AE3Zo74VCqW xnNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hLV5QPd5z0nCLUjuiZ+ELPGlM0plNku5O42nbTYtdzg=; fh=0vZH7kkV2nfEf7Kc3HRcM4Ikf3MF+sRHaEs5/bMhpGI=; b=JnPqQiC3yWWKy2vZcV5vUQwS7p2mcf1r70oc45rkX6X79vc7XMkuUhsyIS6nSKa9Up HAJty+8d3Knw2kN9AE+2Cb8unNsLkJgpCqSOGwP2aAG7qKy+LcQfCPIahrFQyEOR5r04 i2mGdf7VNt9Pv9or3F8tIV8vxmigurkXllarIsqmZlzG7cg/QCp+cF0T6di99nUTq2fD hw0pdLZz1bKeb1JOFIQuZvqgSNsIaG3ICQZuQF0Evg+wrjQ0o04UJOxja09mLe/jWJ1N xr5ZBO50C+e02aL1D6PizSmp0TVBkNdMNR1xPjfLIA3WU1/vnDXFxfff7wkuOG1lpXj+ vFig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dXQAAuPQ; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-ext4+bounces-2218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2218-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c10-20020a170906154a00b00a55bd8a192dsi6883733ejd.613.2024.04.26.23.11.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 23:11:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dXQAAuPQ; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-ext4+bounces-2218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2218-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5D3FA1F233D9 for ; Sat, 27 Apr 2024 04:54:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5845C3EA64; Sat, 27 Apr 2024 04:54:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="dXQAAuPQ" X-Original-To: linux-ext4@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB8493F8DE; Sat, 27 Apr 2024 04:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714193687; cv=none; b=F1Rtxjis+6G3zn/3XhuciGrft/vp2eXS4mmq4gPTNUSj5skfv3rf39wDe+uNgtLM8M76DpHcm9qYeKGUQ+mygoYjgmL0V/KQngS3PF7V8k4K/7u/YCibEWfA7qX9PeMAcabzpGz1S6cqx+iLczRbD2N6dLGLBIV3kYn7LBpbHYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714193687; c=relaxed/simple; bh=T0E7237sTqU8019u+o+Ijw9ffYKvcV9l5H6YU5Q+Rw8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FhWoTGJpRQT8cx5N+81qOQh/Jj35yx0z2UP2SQ1H1Sy1MrjKGfXGBgIKCYEoxhOXKnqc/lhZbgqpQNawt+4K2iv+5BwKYBgDNLLk2n6xfQXNINhZPMe9lZJ6b+Y5FB4/rHO33iMlQn6B0Mph7lrBjFcD61ajRhMOdLZObksMArM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=dXQAAuPQ; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org 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=hLV5QPd5z0nCLUjuiZ+ELPGlM0plNku5O42nbTYtdzg=; b=dXQAAuPQjzRpB6bwPw0jMYh78z XxOnSmi9yZC+HQ5q2PzZJYVtKPkZ7y1st4MIL1hmqPZYjil4p762Kk4B2+TJ6KcWPL0obftUv9k63 5+ZJg4gkXTKAKmBGB5Tn2uByVNU4GeOBAdUSriLj+uSvNeG8OTtFA152HtTMjxyp9RUVgYnN95DgG Uze+wv3nz6L/2zJkzPwajHu3BaG149HD+MN4iyiZcMWvhFZ5xTm5b5FIexcGfqsZ6LMB31S3XwRRp wbbX6E0cYBjH92VUSchvdsiAhBwzGqoxWJGOenZcu2ZajO1fYqlvEcmZ5EMNRCmweht16eAUi+Ihz 4inuVCEQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0a5G-0000000EpPt-1ATz; Sat, 27 Apr 2024 04:54:46 +0000 Date: Fri, 26 Apr 2024 21:54:46 -0700 From: Christoph Hellwig To: Matthew Wilcox Cc: Ritesh Harjani , "Darrick J. Wong" , linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Ojaswin Mujoo , Jan Kara Subject: Re: [RFCv3 7/7] iomap: Optimize data access patterns for filesystems with indirect mappings Message-ID: References: <871q6symrz.fsf@gmail.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Fri, Apr 26, 2024 at 08:19:47PM +0100, Matthew Wilcox wrote: > > ...One small problem which I see with this approach is - we might have > > some non-zero value in ifs->r_b_p when ifs_free() gets called and it > > might give a warning of non-zero ifs->r_b_p, because we updated > > ifs->r_b_p during writes to a non-zero value, but the reads > > never happend. Then during a call to ->release_folio, it will complain > > of a non-zero ifs->r_b_p. > > Yes, we'll have to remove that assertion. I don't think that's a > problem, do you? Or refine it, as the parts not read shoud not be uptodate either? Either way I had another idea to simplify things a bit, but this might end up beeing even simpler, so I'll stop the hacking on my version for now.