Received: by 10.192.165.148 with SMTP id m20csp2973322imm; Mon, 7 May 2018 04:37:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoDAc4f6LsLwLofjJhuo0bf64p7yZdn4t0o0TI0GXUlTIFRGI92nZkG78ErzIqxxIl+HFIB X-Received: by 10.98.86.16 with SMTP id k16mr36326323pfb.19.1525693057117; Mon, 07 May 2018 04:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525693057; cv=none; d=google.com; s=arc-20160816; b=dd2GbsmmYWjWiXzH4bG4dWSA/swZCMWGpXhAEjsHyOA5OQu+SgB25ewumVKO9+afpw XubkvSKbC8xY4E5VV/Lrx16aYYCMIYYkFxs91smf1mHgeLLS8IWtzYq6eZio2QXnnJWO epQX6Fcpbi41rjNW60NwjV/tmZiQSQI/wMSbgyxNrKfMYV5KL81+73yhp0iEG8wOC2gF 1Ros5pu2YixkmLj3kE8Z5CC2dak5xgjFSPZbNBVMhcHipYmT5i3ZPzDg9jYNHSdr03q8 hjZDsZDfqVA4/ayEwBLpJ21379ZXa8Y4osveOjTIjFlZT7zsZPAc0AEhYcMIi5VwJ68E MezA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=apmE4z/Cz7ALD9M45usXBi47SVUPgb+eUl9F1zjs5oc=; b=Vg/enRiLKX2LS6wLKNhEZMLiSeIOTFGOUp96E2lN5iRbX3lV/H/+wA0P+uwgvqlBLn wnjoJxY1lFAcvg0ieobbrd0Ot2qD7rrQLp+CrKkcS6Dik/HrK7IVzLBRWK7S1rT8/Shc v8M6q4A99EHANt4va8yVh1dhB9pmVsKl0+l76ENcaok9swQIaN/GxsbX7ig6OisFG4ti /zqhJ4OyGi6LuPWXSNYgC3A5JWAqI9TLWQ2VF0aEMF4UK5+lpdHh1E1Rj0i2l5sOyuor bIHio8Y4E3RdA7QnvIKfpceBuHxYePEu7ebZgqwi4iVW+3aIGMmzMkBGNXB3TdBdIntq bu1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d7-v6si13388106pgq.305.2018.05.07.04.37.22; Mon, 07 May 2018 04:37:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752170AbeEGLgR (ORCPT + 99 others); Mon, 7 May 2018 07:36:17 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:37599 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751960AbeEGLgN (ORCPT ); Mon, 7 May 2018 07:36:13 -0400 Received: by mail-oi0-f66.google.com with SMTP id w123-v6so15800619oia.4 for ; Mon, 07 May 2018 04:36:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=apmE4z/Cz7ALD9M45usXBi47SVUPgb+eUl9F1zjs5oc=; b=iIOudt9in4ZSQ+uVJc1ecT5r8v82LOJclHUbkwwL7I68KtjBgdXVoaZVKhPI6N/WHY ucfnbNpU33V2H3lwdg+1jgRY7Cwkoi39QRexlMqxVGONz3nqMk9csV/GXgYwpVyH0mWU ht7Ie4KoNC8xqB/Ie/ETGsOR4Xq6DKTqA3njVsa4Izs+Uq/wbCOYDsADXHcH394wWf1t a8ifezQYOHYnroD6/wYXPoB0Zt7mHXU0m+a5BGpKmWNV7FoBx1OI2Opmaa/r8aESXUZI xz+IXBi+fJL2DbprYefFHWeUTwOZQDuGS0M5kcHo2pkrUZdOHyjfoq4bh2OkuZmPb/zc 1pmQ== X-Gm-Message-State: ALQs6tANQiOgXk04GmoVmZPpNV8E1o/zmDpc0QtzDGuZEFtG08tIYsH9 T5A4By7CcK/TKeFNrp0uA2bfjjd8OsXW+5nzucO5ZA== X-Received: by 2002:aca:f07:: with SMTP id 7-v6mr17132349oip.196.1525692973248; Mon, 07 May 2018 04:36:13 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:58cd:0:0:0:0:0 with HTTP; Mon, 7 May 2018 04:36:12 -0700 (PDT) In-Reply-To: <20180507111644.GB18116@bombadil.infradead.org> References: <20180507082108.28186-1-mszeredi@redhat.com> <20180507082108.28186-3-mszeredi@redhat.com> <20180507111644.GB18116@bombadil.infradead.org> From: Miklos Szeredi Date: Mon, 7 May 2018 13:36:12 +0200 Message-ID: Subject: Re: [PATCH 2/3] vfs: dedupe: rationalize args To: Matthew Wilcox Cc: Al Viro , linux-fsdevel , lkml , Amir Goldstein Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 7, 2018 at 1:16 PM, Matthew Wilcox wrote: > On Mon, May 07, 2018 at 10:21:07AM +0200, Miklos Szeredi wrote: >> @@ -1738,7 +1738,7 @@ struct file_operations { >> loff_t, size_t, unsigned int); >> int (*clone_file_range)(struct file *, loff_t, struct file *, loff_t, >> u64); >> - s64 (*dedupe_file_range)(struct file *, u64, u64, struct file *, >> + s64 (*dedupe_file_range)(struct file *, loff_t, struct file *, loff_t, >> u64); > > Please name the parameters here ... > > + loff_t (*dedupe_file_range)(struct file *src, loff_t src_off, > + struct file *dst, loff_t dst_off, loff_t len); It's the convention here. Going against the convention looks odd and has dubious value. Fixing the convention is okay by me, but I'd leave that to some kernelnewbie to worry about. Thanks, Miklos