Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp373933lqr; Wed, 5 Jun 2024 08:29:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFnrygGX7uSmrNO/2YPBPqm7M/QJ5RikYbG8ZizTazRwMdA85MFQY9MzNX13gYBUL8YeW8g54DUoUITkQvsQ8xOixi7CqY90xBOrysVA== X-Google-Smtp-Source: AGHT+IHKp3i4iFLDiN/hse6OyzEqbTxl+u+Vv/VK0C65gdlPBHSMoUTmYvnKZk+MKe23WhvJXD0N X-Received: by 2002:ad4:5bc3:0:b0:6ad:753d:45cb with SMTP id 6a1803df08f44-6aff736f9c3mr108396536d6.20.1717601361657; Wed, 05 Jun 2024 08:29:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717601361; cv=pass; d=google.com; s=arc-20160816; b=fERzj3ZuwYAIAPNLYNhuLlI2Ua6Q1YhTUD5dc0cdEqp9JPxUAzrlBWzcEjW0vDLTj6 8veRLUIO0oORNSVFBTYhKlxi3kgrwEx+f7JAX0+7KTn8sOvfR6xCP9v4vQ2s44HYeGaE 7Q2jFGjzXSYB7CuO9eTs+NE8DRZKOA5a+RT1SjkLfQ+OLwirgmsyK1+8a24W6tM0vsQI an+QEP9CLkW8KQyQyUW2RiHF1wAlHvNs+H15LGvQ8ftmvcY4KD8fQGV5q4ytoRs9h2n/ ZnW+HNyXi3CxNgtcr+U6xK/YfyKi0z9I6ZRHrdnxULwa5cM0AjBUMtxCEksM97P4hnBo z5ng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=llo4nif6jDaCMQRZWgdy5h6dssoIY78pHEB6N8LTFyE=; fh=O1vtNqliU85vqbII5TfkSLikTqtYsF+o6wmWcNCg+C4=; b=vPHptWRMmM3k8IluVdhHZU7ybF7FGvoldUzTOZ2DykRB5uezGFGCdS/NbmYkQRIJ5L SJRqZwSvGq1iMDP78k6p+yX7pQprudwptb46lOT81X9z87NoCttahKsIQD1gC5JksQvW D08GjPihnLJOxqHWq7j70G+IGVSLhRd/AMlqMrtam8sRcXdx8zniAopKLjzzD6ym11wh TDUy132GhjutWFzyviD7yPBXmjyyKsIA4DPxmsstKnJmV7e+/K9/WwnF3YfododvJISf nxTq5Tx3MevGWpSW7x2U91TGj8CJOQ3uvA6rLo0uO7iPhAM63/lp8Ja51zYaZTtNE11L CEog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IZ9vzmT5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b419219si137430266d6.425.2024.06.05.08.29.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 08:29:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IZ9vzmT5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 61A461C21F64 for ; Wed, 5 Jun 2024 15:29:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5722F481D3; Wed, 5 Jun 2024 15:29:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IZ9vzmT5" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C76B5D51C; Wed, 5 Jun 2024 15:29:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717601355; cv=none; b=EQ3Rc6JU8JvxmYtqkP4OMLdN17OWPMByEvYT2KBKU4Jj7vTfMJklFzVZ0zhT3x5/YEVPZzOUO/5l2sCqFgHOrB+CKsc/DPsxN6l9+PAemNWqCAJkxPfm8MeaMhKE+YjCiKIXNa3WnhLfDi7oQXo23dly/3r+98K2H6A2A5xW6Ls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717601355; c=relaxed/simple; bh=HwvNFpzT+al4U/Q+ANq8xw4diZyhziBGEYyh+bs+DIE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JFSEJ8jLoqJ9+jQopoCgp21tEkGAe4ifdt43lTlBLKfgLtgrsKoYpIBjdtUXdmgpKlcIzUOjD/CQpK7LfyBbt7JgT6h3sqMjEevq0ggBqgMTMghGMdGw/GEl8gLdCknb4N1kNihquTpItbSTrkKHlSYvPQ6TtN6KoetXNbGgWoM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IZ9vzmT5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E1A5C2BD11; Wed, 5 Jun 2024 15:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717601355; bh=HwvNFpzT+al4U/Q+ANq8xw4diZyhziBGEYyh+bs+DIE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IZ9vzmT5OTLJNHr6S+I/JEDqav3byqcSeMtJVBd8aTDoL6u93h3pcY9Vs6jmLLiFM so+odux6IPaLezC4hh3atH9M4RVqqNc4fc+nk/XsRw+qdkkSLBQ/B3hAuXoy2tCguQ i/o0sE15ZnNgFmmtJD6QCEvquCCiGG1wBaCtVaRb3m6XA8RKvKDMNu2gXqJ5YT0VlS zEWgsPwIG73D2IuS3e5fmWfcAM89RD8e8wkLi8PpzWTuVSzVWVuHoQgBWj+9ndljG8 WUvWLFMY8iUtfMgx9TXON4MCXCYHW2u1Fa+25F18tCCCfxWZNSFHfFZO/7OOdpD83S 2oxHlzUpKq2WA== From: Christian Brauner To: "Ritesh Harjani (IBM)" Cc: Christian Brauner , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, Matthew Wilcox , "Darrick J . Wong" , Ojaswin Mujoo , Jan Kara , Christoph Hellwig , linux-xfs@vger.kernel.org Subject: Re: (subset) [PATCHv2 1/2] iomap: Fix iomap_adjust_read_range for plen calculation Date: Wed, 5 Jun 2024 17:29:05 +0200 Message-ID: <20240605-vorort-ausgibt-54881bbfe967@brauner> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1332; i=brauner@kernel.org; h=from:subject:message-id; bh=HwvNFpzT+al4U/Q+ANq8xw4diZyhziBGEYyh+bs+DIE=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaQltDj1vBcPljW+9WcZ98YPm1YcfvXdwtDtQ6R2A/+sl UoFDL9SOkpZGMS4GGTFFFkc2k3C5ZbzVGw2ytSAmcPKBDKEgYtTACbyM4WR4ce5RdkZXyzq576K 2H7u/oxHVctLdJ3bjBJE4hIPTb/7IJiR4dy3Sf+aa5IeK2/vfMMX2+Lz/gTHWalvmQyz7Pb8a9T 8zQMA X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit On Tue, 07 May 2024 14:25:42 +0530, Ritesh Harjani (IBM) wrote: > If the extent spans the block that contains i_size, we need to handle > both halves separately so that we properly zero data in the page cache > for blocks that are entirely outside of i_size. But this is needed only > when i_size is within the current folio under processing. > "orig_pos + length > isize" can be true for all folios if the mapped > extent length is greater than the folio size. That is making plen to > break for every folio instead of only the last folio. > > [...] Applied to the vfs.fixes branch of the vfs/vfs.git tree. Patches in the vfs.fixes branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.fixes [1/2] iomap: Fix iomap_adjust_read_range for plen calculation https://git.kernel.org/vfs/vfs/c/0fbe97059215