Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp135280lqf; Fri, 26 Apr 2024 01:53:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWSfdVsKYCBQNSE7hZ1hI2IG2Ezws3K3Gn4DRzWz/WQkHooEQ6kNf7/z5xkpja/zgXXPhVzduTJP/ofIFctcQF/mQ8P4dJlyKuA5juLQ== X-Google-Smtp-Source: AGHT+IGqUxiC1OxjZdivkaWCixRSujGRfQUC2FtNPeBCKkvB0s889m9SnFQpR4uDkDsC/lyFbXmI X-Received: by 2002:a05:620a:d88:b0:790:98f8:955e with SMTP id q8-20020a05620a0d8800b0079098f8955emr2083730qkl.30.1714121580105; Fri, 26 Apr 2024 01:53:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714121580; cv=pass; d=google.com; s=arc-20160816; b=oSs7G5y2lGfZQB4y2mMEMiXFUcV9wJN9cMpDZ+sACu6ifNoPjXYgGbvL14VNoSGYEv fprap/WVQOPvifY/31ftt8dL3PyzHYmJi5erOa72EYtFzYWWnXowsaPWrjGnfEVXOnVn Xr4qqZ0KAiR+BCRdrc6FbZq4cibi/vgqql5aVH/aMEvpXVUcjVT54XK4Qm7j0a3Zpqc3 tIfYs8X9qPP6JgfEu9Z7IcvU57NARSzvm8tGKwc+9b1bds4ADUJtjIoNnoF/HieXI6kP bPJWEyP+cAqQoT9y7Nmsz5OceAmRRniS9Y7jjtSHxRTOLLY672IQ7Xynd9eTTJR+6tAK 3Y8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=NkH2LOuzP9VBrs2iZ/5ie59uWLP3/LNP8BoBQzx8edk=; fh=8rIb15sN/EfL2wPIMBetI6JRP6XRsudvrfS6AavopBY=; b=iqdFOcVD2O2pJ54kh/viYVpDgv0131510UBiPmj89BckE6SHDFTZU4rcWYTVry7Agl B/6Zg0MagNSZGUbvih1cGtUvMr6oaKkSysSOHD6mJNzNVd4W4NM61OaqTmYq2IOisgq7 I6MC6jhEB6ukcxpXL9fs/1Pqv5FaOBUTdbQDZvOBOMxFFDFy2SGlk0MTuaOrPECF/Z20 qkakJLw6Y1BwDxCpqQ8lyhk5W4GaAfX23f4S/tkQPBADXCM3VkoWsMun1EsRJjm7+36i viL5kcBsxzK96LUoNj8aJC6uQmYLxyMPf1k+Zfvm8QDo/jDlRuGG04IjZLGtm8W5lfo2 sS7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Q3lg3lIE; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-ext4+bounces-2196-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2196-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 7-20020a05620a04c700b0078d63d36643si19195995qks.444.2024.04.26.01.52.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 01:53:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2196-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Q3lg3lIE; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-ext4+bounces-2196-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2196-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 BF7311C21592 for ; Fri, 26 Apr 2024 08:52:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC24013D53C; Fri, 26 Apr 2024 08:52:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Q3lg3lIE" X-Original-To: linux-ext4@vger.kernel.org Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B8BC13C838; Fri, 26 Apr 2024 08:52:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714121553; cv=none; b=g0zsaARrDMDOql1+maRw9anCt+W0WyYjBdbJLB5bo6XhkqFnDVNKqSgwIzvmmTTiCgEDbRipWbgN3vE1MAN0VF9RYNJ8jGd3kWj+h+LohVMg7YrxQkBFdoz3v1xMGFBXPU21aU0wMfQtvdvWCPl5YwKn26IWgBdRv56vu06fqPI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714121553; c=relaxed/simple; bh=yLCiVH/bKuinl6izRxfxxNSURtlqZzTFG7b5YuQhMT8=; h=Date:Message-Id:From:To:Cc:Subject:In-Reply-To; b=r1i1t2LidghL1jsdQLuqhemY9QZCGveIUjOvt6+sj0pBubH/y9V4VMWMol4hYwURvLNnLEMEm3f2lIyP3282C7NWMuT9hDXAne1XraNTIUPbHI8G7UUtpnuLstPPFTzpFMrmPq0DjvGUNlPCkbaRqArKUD0U/TD2UBzUgZvsVXg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Q3lg3lIE; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6ed627829e6so2232318b3a.1; Fri, 26 Apr 2024 01:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714121551; x=1714726351; darn=vger.kernel.org; h=in-reply-to:subject:cc:to:from:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=NkH2LOuzP9VBrs2iZ/5ie59uWLP3/LNP8BoBQzx8edk=; b=Q3lg3lIEr6Qu2T7by0EiM6DCpMeGD8MAR4qKnnXgdt3WJ1ULt/ZjsmjqJBre8yM0He D1cJcTBONE1v1vy+bkudBucKPaxpIDDv55Cz92stdrMBKhwhvEzRH3JKhkL8h6aYy8tg WXPBHK+cnxJQYCcT0UBRyv4PoYJ7KFIltoO7mcPjbZinu+FlxtiSfRUEE6Nf+/zuIBN4 NiniDGzwlHvNMiKtwnSP75AInTBnlWm2kN8siX5EbK/WhcosMo6BH/BQPtgdEjzBpXil HVo9kDEsNVZl62+6c+ODsnMulHp7mMSoGxEzYUDw0xsYJkE4OilJ5N1LMT/IlKzjruqu HfRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714121551; x=1714726351; h=in-reply-to:subject:cc:to:from:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NkH2LOuzP9VBrs2iZ/5ie59uWLP3/LNP8BoBQzx8edk=; b=Plp1takprm9SAQZvgqWoGwH4ilrusq+Zc38m7kPzkGLiA5Ta7R4itPAVxurg+Wnkh0 tIsDQZ6uUi0qJKkvDFx/QKBdUnr9ammToLssvEzX+Xp8PoI2VDNMXVWMUUWaoK2UGlY2 1vbUEKqb9tpmMTFplL83Z91meZRqTNHOd7iw6qM+H7n/XFgTp5EXdexiZ0rii2Lk5chj lQymNIA7t+aCPOcUouTLbCrusMpLzcmZxo9w8nJqSqOr72W3HUBC8w4Wmmm5oMuE/jiC I4EdmTUfS78bY/VWxGraoTyXi/VLeQ9Xo53efLZFllE6D1HrFs33HhCgbRJ7DtyjSNUZ WQcw== X-Forwarded-Encrypted: i=1; AJvYcCU/8mMgDvobLpDxsGAZsHsC8CY48wnXsVU0ZTwT045kTgGg18S56P4pN0ilX+F/Mg140esNIJMTnFe3Kbb1oV9cQ/k7lZif6CjmNXxORS6EJsqtfio6cAJ2VBWGe6GohUQRrSZ6ecmp9Q== X-Gm-Message-State: AOJu0YxNtZj1zzw8Qske7vgSsALyaqmsp2S0ghYwRJlL3iEbfsBqejud qrAV84H34s4baqgwqBeRySKhyoZ7+3MVQVsW71fKRMGTbeZ1C6Dq X-Received: by 2002:a05:6a00:22ca:b0:6ec:f097:1987 with SMTP id f10-20020a056a0022ca00b006ecf0971987mr2609579pfj.31.1714121550222; Fri, 26 Apr 2024 01:52:30 -0700 (PDT) Received: from dw-tp ([171.76.87.172]) by smtp.gmail.com with ESMTPSA id kr3-20020a056a004b4300b006ed26aa0ae6sm14356559pfb.54.2024.04.26.01.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 01:52:29 -0700 (PDT) Date: Fri, 26 Apr 2024 14:22:25 +0530 Message-Id: <87ttjoijzq.fsf@gmail.com> From: Ritesh Harjani (IBM) To: Christoph Hellwig Cc: linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Matthew Wilcox , "Darrick J . Wong" , Ojaswin Mujoo , Jan Kara Subject: Re: [RFCv3 5/7] iomap: Fix iomap_adjust_read_range for plen calculation In-Reply-To: Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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. -ritesh