Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1413843pxb; Thu, 4 Nov 2021 01:43:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2xqWcX6HTUfOug12KPQaNGJYnutY9U5FoirOPRSdjhV4ARZczsUhF3839VVwtyt+TpJlw X-Received: by 2002:a17:906:3693:: with SMTP id a19mr62702553ejc.237.1636015406242; Thu, 04 Nov 2021 01:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636015406; cv=none; d=google.com; s=arc-20160816; b=n4qN3u3Z4/VWQOdtUbv3185om03HjuwUPXqIb9Cye1CB9dUr881xN36kwikwyBJtuM KaxPaArtZKIT/ggpE4R8hXd6TmrymssYrpzVwRK3tN3pWiPF7B/7VZNW+ZyLd2YV113I Ks5xJpyOmuflXZJ9gvm4rQ+Lvim9CL4rC19MSLwFK5nay50vEKBHB0KtTIUTEH1Mtumz CBNSb7MxjCqJpG0EBUAResfM+Nd4iyuiJPXDHwSSdrcScfnPR3zZP0AkGunqYMM3pPHE acRlG3xv/nNG14yKnDkZuyRLBaxlGBxvUJCerSL6SfyxECKUwI3laPgUiNrFBA1SmkQi 2Mag== 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=kM6GrF6SJ88sCE1yx7wY0xKWNFrPLecWgtod0L4NR4w=; b=XhlY3UV049T9LlHEnrLL4NBIRibiJPu1w98y4RRR+B75G+XbdzwPLqdq3NF/HFEc4e Yn6W6s5pAV6UsVdr2YVv13WuegjSREO345IUTdt5C8leG5H32ctm6YUEc0fZVunS1U7U VNL1OAb7b4nh5UgjT0a6ZJIJaYKCantFkfQv3Zloibv2rUSlCGtPsHSf3KdN7cNRT1le mWPlNK/7QLTesI/ut+KvNK87ADlr0pG9iI88inFACJiAe8cboP1WjFbmIj1qhPwUCl+h lQzTzk2TwUgufVOMyko9JzLEA+7lPKPmcpdSZZI7nE0fsJoxBtA6JwAgAf661sW9EMoP TWXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=eZrGZ78i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si12619300edb.249.2021.11.04.01.43.02; Thu, 04 Nov 2021 01:43:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=eZrGZ78i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230500AbhKDInX (ORCPT + 99 others); Thu, 4 Nov 2021 04:43:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbhKDInW (ORCPT ); Thu, 4 Nov 2021 04:43:22 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77918C061714; Thu, 4 Nov 2021 01:40:44 -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=kM6GrF6SJ88sCE1yx7wY0xKWNFrPLecWgtod0L4NR4w=; b=eZrGZ78iepNkbX/hRBtrDBUFnH rXQkIGGEGfraz7hIhy7RLwcpD8gu2De7+5PfCRciTMwUL2r7eO9TyeAIqNE/D83YWypHcea3htyJG xIne7L7Tri87hyXmfHcCwImnkWM2Wdtot7bOkWVVfFaz6UqbJwBmL8vbNWAaLTJp0oJJ+76L/zVSv 6Py7hRAL3exjBIcT+ZKebQ/r6DSzB6sF3QrWwLxwuUu3hzk2K+E9HBC3/ejfcoN0ZV012ZX8LgWqN nyyuLF1/OMIYdI2Dyj4PHXsL1gD+dgstDOjtCTdUKgZ0nOYVnlUff7pYGPIosNHQVVOIakh30bCQg uw9d2l1w==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1miYIb-008LJP-VR; Thu, 04 Nov 2021 08:40:41 +0000 Date: Thu, 4 Nov 2021 01:40:41 -0700 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , "Darrick J. Wong" , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Jens Axboe Subject: Re: [PATCH 18/21] iomap: Convert iomap_add_to_ioend to take a folio Message-ID: References: <20211101203929.954622-1-willy@infradead.org> <20211101203929.954622-19-willy@infradead.org> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 04, 2021 at 01:38:48AM -0700, Christoph Hellwig wrote: > > I _think_ we restrict the maximum file size to 2^63 - 1 to avoid i_size > > ever being negative. But that means that end_pos might be 2^63 (ie > > LONG_MIN), so we need to subtract one from it to get the right answer. > > Maybe worth a comment? > > Yes, please. Or we should stick to the u64 type that the existing code uses to side step that whole issue..