Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp272554pxa; Thu, 27 Aug 2020 01:41:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy90z6xEOyXOCeSGJxepnMkVFOakLyP+EtihurHDUiTqGCA2unSw0erxxmAgyc6QfNU2CvT X-Received: by 2002:a17:906:2c47:: with SMTP id f7mr18999803ejh.199.1598517670795; Thu, 27 Aug 2020 01:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598517670; cv=none; d=google.com; s=arc-20160816; b=GzdAezyAXmZaVvTp6BmwEkDQQdoKciYN6XH42ffvqdBljOyUDUwz8LAqnKw51nBJG1 0mtcDyBMil72qVUuxE/lguN7bzfOrLDR9+RwIebsIsEFSFHNEpNLFfsCjBHocjkACsjk shtQhgKoT4kHQ5QicL/osBUGyOwjbcBLcW1CWjQSoKdbkeBtYc3UVfivlRW50gkxSbcv GsPIzI1kCQkuII8adDQSP4iesLQ7OScbcWmEstTfO/KkUWw7l7ZJk6bhkqDOA71K0kkD D0pu81+Fxv0QRzOAsNC69o5y515n6ma+2rqP2FbZNCP1yynYl4ghJvXN+e9Wi4TOZuit x96A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=M2uZojDOOMLE39hrWQtfZ22Q97aL3ayjlw6wCDd+LVA=; b=tjeNw54oC6mxs541kuKTRUQHcyekCu+xcQkW+4Q3tpON3ySAryPmzcGdNvzgARYYBR s2Z6FkhDiIuXD5H9Kc/jhs2v40Z1FLBQP/xuVr11Vyrp7fKTERun+xPvcF/2nlBwOcI0 EnK0SIlg8jMeCrQjsivLbFNy1buDFd5eADlLd4DMFi2gsgJUJYQjqYK2kTJcUcf6ghKD pn6mvGQYrkc/4E/Z76nUkT3lvyWFJ55+hkakX/duYCsFnuIT0TphSUhRb2bR6eUrNd/2 mp9FM2ZTAq/450y5p0iwcJPhSgSLXFxhOwgNeo4QWidqpka/uK9bzzcnSiCNoPgkOGOI Ngpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=ddjam0kF; 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 g14si882319ejb.149.2020.08.27.01.40.48; Thu, 27 Aug 2020 01:41:10 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=ddjam0kF; 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 S1728087AbgH0Ijx (ORCPT + 99 others); Thu, 27 Aug 2020 04:39:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726826AbgH0Ijw (ORCPT ); Thu, 27 Aug 2020 04:39:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 376ECC061264; Thu, 27 Aug 2020 01:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=M2uZojDOOMLE39hrWQtfZ22Q97aL3ayjlw6wCDd+LVA=; b=ddjam0kF1zHBRftbdmXZA7oFBW n0D78lJ9zlPjJpIO3e/IRxadnz2vaOXh/2TnZGn1SuTFJeFzyTlk2+4pfs16OyfnRDI6LIahc4Wz0 CHzRhQoo11OCyDgC6qRONa9DaG5Li8strlXlG7Db8CCU4RJV6X1Iz6ddHjNrSAqXi0r3y/1ZZI2aS eiQHcv5MqVH8DLlLPDi8ccqYWnZD6hJbv/z5sFxMM1im+qiuZckEjcWDrqZOiS3PRncA7icaD59sP z2hvnmJOn+mGFj3Fti+niOFAKnNLqPvE/5xvbx2tZCl0Q3GY5fnM3BAFxO1UwIOH1f8LlTgktGLvT HuAxgdlA==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBDRl-00040W-CS; Thu, 27 Aug 2020 08:39:49 +0000 Date: Thu, 27 Aug 2020 09:39:49 +0100 From: Christoph Hellwig To: "Darrick J. Wong" Cc: "Matthew Wilcox (Oracle)" , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 9/9] iomap: Change calling convention for zeroing Message-ID: <20200827083949.GE11067@infradead.org> References: <20200824145511.10500-1-willy@infradead.org> <20200824145511.10500-10-willy@infradead.org> <20200825222355.GL6096@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200825222355.GL6096@magnolia> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 25, 2020 at 03:23:55PM -0700, Darrick J. Wong wrote: > Sorry for my ultra-slow response to this. The u64 length seems ok to me > (or uint64_t, I don't care all /that/ much), but using loff_t as a > return type bothers me because I see that and think that this function > is returning a new file offset, e.g. (pos + number of bytes zeroed). > > So please, let's use s64 or something that isn't so misleading. > > FWIW, Linus also[0] doesn't[1] like using loff_t for the number of bytes > copied. Let's just switch to u64 and s64 then. Unless we want to come up with our own typedefs.