Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp59761lqg; Fri, 26 Apr 2024 08:44:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDN9f7m8SoO2KjJoO51aSKfJo/BTGJKsGPljUUumwSPRGGJkR4JbBLyJ2Tp+y2WeqGFHLe7vCHWxtfUNG7HQnwWMSQvQ4Z4aCUo9tV+A== X-Google-Smtp-Source: AGHT+IFa5FV/6wrGQY6MLvPt3q0XXYNFX2LBqCYECGXLTMr/JgJ22sWPO+vLFCoLt42NvKD47ekm X-Received: by 2002:a05:6808:14c3:b0:3c6:eff7:7f01 with SMTP id f3-20020a05680814c300b003c6eff77f01mr3740952oiw.51.1714146260164; Fri, 26 Apr 2024 08:44:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714146260; cv=pass; d=google.com; s=arc-20160816; b=szOQ1BUl40zpfqZ4/vrAzXIHvuSSllMbfGzfguSzvPDPsXjvFJm9/VW12WPozUbWtC Ld4A8j0qvGqaqYbjku6Gl3uo32CYlgSeyLGsrLpdKJlc3uCfk3oShkgooR7ZyCAOrO09 MWvraXF7rtfUuA3LYrQG930aZQIbvZLChlCdZvzKiy29W9mF1HjYSgsOSxoBn2TKrjeu hb/M7AMZ4hH6j0toOyS0AMD1RLAh7UeePlGsvDgnh5dpDzvYYy0U5rl4CnQhJbOqPEZK WOPfKBt9G8T1Eaq5D02rhuWMK80nWJQrB3O3Pa8XOh3Kv7C4KqSv9osfU3e1GRzo7Dgp 9I6w== 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=g/3DyYYdz02Ck76qQolql4rGvR2Cr2AGxLrze/g6WIc=; fh=/JUxpzD4GfYfbn0mkd46hOUQ8FHzn2UTT7XM0I9QMHY=; b=GrMTUvZdSG+ldc4qUuVRGjPBEeWnjtKMGGthaWxRy886xET9ySWAHMorNoFxXhdTme bRZ5SD4fhiN6BXhpxGvakDsigcbA3dxt4Fl3D1XRrXTgCyV0VAgBxTRnH8/iPACwjN0P /Mon7Ee4oRH8KRqkN+QEvhMeA9QtIMznbPwIfsWuG8h5nhUi8LW6Vs5ABicxsTfpCy/k yEXhu8RMizHeJHdXZtOrwiCKDkN/gyDlxByXu37BnKWNRkjNa3vyChjjLaMIi6NJuctB OdYnzT65gf6vzZMtuu3b/d39CisywjGqNjfIkPNbB392/qtp6KcKos4Ywd9C7tWDrf41 btGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c0jTmmbq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2206-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 y1-20020a37e301000000b0078d6572ea5asi19952334qki.702.2024.04.26.08.44.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 08:44:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2206-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=c0jTmmbq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2206-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 DAE291C23A19 for ; Fri, 26 Apr 2024 15:44:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 732A815380E; Fri, 26 Apr 2024 15:43:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="c0jTmmbq" 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 E9F7F149E0B; Fri, 26 Apr 2024 15:43:06 +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=1714146187; cv=none; b=ryoQ07ycAlyDyBFhnP/YEZm5k9a3onoeCE0x4soo1WrM+qYoobHMZhvMgWwyxeBW8AiFF7u43bg2qucTw+0GR29bJJ8xHCTOYxK9Ev8Vr5ovqWbKDRVSddmeUY1h765Vy1JxaUy24kYTKDQp5dOkIXfoXymYd9M7BnFUvlOfvNM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714146187; c=relaxed/simple; bh=3+MZ66czdcyI5ySyUqaAWboyXMAynQGI20OLMSN+S04=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BmXliG0d/g57GdbDBTy4EKtmClV24rxd9eeHM/Pp/yYKPpjxLtq8uYrLI/o4dnMNHTH8HhP5tHTJqjX1R3Ftcd/Pset6CAdc2EaUjmPaZ7eT0rJ8mzFPkIwUVARFLUWWzr36kLD0EyNBskpBUxCtW+nkVK/3REVPSx30c3hgEv0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c0jTmmbq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71B6FC113CD; Fri, 26 Apr 2024 15:43:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714146186; bh=3+MZ66czdcyI5ySyUqaAWboyXMAynQGI20OLMSN+S04=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c0jTmmbqTpKuOmXZSdP719T4nHxqf1QK0u51lSPC4Ya8tc4gf8yIXHrbdYUVYRPqv 0p2K22Mew/703CANqSZ4djhiQka/y6Kj7AeuSLFAn0gfQ11QZoeFQ6JnGGoFJLYU5j QhAOSx3eNvbi7aOBlK2K3299eIyeXdzkhJc6e30fGBedN0M+re5uE7a78S7iZxNSw3 CvV/smtkGW0YUSnrAe8y9/n29b9ZCzyUJ4KYseaiK3cExqDH/RPXwx0jLMyXLOHiS7 wRtTeOq44OO9nmGWxUropwFoOqf39jybXtIaW9niIe1WfMYSJlPyU8KLe4f5dLatsf 8T4dvEZTZiK1Q== Date: Fri, 26 Apr 2024 08:43:06 -0700 From: "Darrick J. Wong" To: Ritesh Harjani Cc: Christoph Hellwig , linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Matthew Wilcox , Ojaswin Mujoo , Jan Kara Subject: Re: [RFCv3 5/7] iomap: Fix iomap_adjust_read_range for plen calculation Message-ID: <20240426154306.GM360919@frogsfrogsfrogs> References: <87ttjoijzq.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: <87ttjoijzq.fsf@gmail.com> On Fri, Apr 26, 2024 at 02:22:25PM +0530, Ritesh Harjani wrote: > Christoph Hellwig writes: > > > On Thu, Apr 25, 2024 at 06:58:49PM +0530, Ritesh Harjani (IBM) wrote: > >> If the extent spans the block that contains the i_size, we need to > > > > s/the i_size/i_size/. > > > >> handle both halves separately > > > > .. so that we properly zero data in the page cache for blocks that are > > entirely outside of i_size. > > Sure. > > > > > Otherwise looks good: > > > > Reviewed-by: Christoph Hellwig > > Thanks for the review. With Christoph's comments addressed, you can also add Reviewed-by: Darrick J. Wong --D > > -ritesh >