Received: by 10.192.165.156 with SMTP id m28csp2214200imm; Thu, 12 Apr 2018 10:25:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx48VV3c3C9M/DATjEFHqcvl9M0056jA1vdsxm0tJtzKOOe0T1WgIzXE2/b+nZSe1srEZ8V+6 X-Received: by 2002:a17:902:33a5:: with SMTP id b34-v6mr1982946plc.232.1523553949930; Thu, 12 Apr 2018 10:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523553949; cv=none; d=google.com; s=arc-20160816; b=L5cyyFA3C0po4lo/kVVqhn2/fCg8BEVl914RD+prq0Db4KYGW8dDulRStBgMOFWMqO x99jsIWxjUPnnkgKdYVOmjIk6nxgB3FScnEpkG+3u8WO/bVyboY2RbhQ48Idz5t1ddvk ACJ6ZG652bef4Cph/p3iIuwDkQln8fRZlDi0s+PcG2cTj3kA4SniDWHZ/E0zk/CQdVhj hJ8JoUNLY1nQRsigRdp4ibLNp4dUA8nn/qdjqmDqfV2rA/38h4WPOhAbSKeS/kTMI2BD aVOIaBn3HsIoWz5ryO850+ehJ6GSDUgdRe5PYIz3El6t2mu6x1wNMHzUEDvUh4lZdOQa SZ3Q== 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:dkim-signature :arc-authentication-results; bh=XNm3mPAAIqp1zE5snoMP1jcjKnyzDgavO8Ac0Bn/G0M=; b=qsvvhOMvU5+G+sDR19ejzzQHUy4fs+YywSXBHKKo0UK3VHTvxrIJFdVpeFK7UVzWYO +BBnebc1KgTN/NyMm2aECoPwFYCfuVcNsX6IzaH7wQ3uBmO9tP/ekkc0sIyWNEcn7TwG aK1ezsvf9JD4IgLtQ++ZdZHl55k8zwRKTbKunbtU52axvboYdgOe8xWSCthEkwLu8Gn2 h5ZU7F3FB8L2d9UeRTqh0fHhEHFNaFQVMLS7ErEi13DwR+Yz/Wcn1pGeygAIT1d+R8yh nWKJvkdlfFrO6/YlW9U0X/I0RX1urJNqN4OG4VgQWDeKAbAABDVHpGICvWRenGUMONTM NrDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=MqUo51km; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q64si2851522pfq.385.2018.04.12.10.25.35; Thu, 12 Apr 2018 10:25:49 -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; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=MqUo51km; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752952AbeDLRYD (ORCPT + 99 others); Thu, 12 Apr 2018 13:24:03 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:46663 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752700AbeDLRYB (ORCPT ); Thu, 12 Apr 2018 13:24:01 -0400 Received: by mail-oi0-f67.google.com with SMTP id e123-v6so5884839oih.13 for ; Thu, 12 Apr 2018 10:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XNm3mPAAIqp1zE5snoMP1jcjKnyzDgavO8Ac0Bn/G0M=; b=MqUo51kmZN2/0qOvMItZxPVYhWYsglqAbUIKNsDxi6Pjv+5cRFFA+iRZdrgsy0hmwg v/YsDh3i8q0YEVSFhBPr/UhCYeBj8yUSMzPRE284hQ3rdCcvNAlMMvxRC2TxmJ1YUUHP Qb/UI6fC7c3JDEeQf9F/0fwQm1dDe722ALZ6I= 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=XNm3mPAAIqp1zE5snoMP1jcjKnyzDgavO8Ac0Bn/G0M=; b=tXi9Vgxw5ImbTOW2NxkhluSyeni0wNl6XHX5LySS1YqcBxMRlF1yexbVLg7wJt8YxQ nZHrH8gNM7r2ASWNUb8uN56Pdx07nKCBf7uKV/asEkHT74yJ5SZYKTzBGsgj9ilv7MId 4xCwlXEn+VNDrYK4k3N2d4Ra730hf3/MKR0oMSU8TAo8XpzgBClZN8FHyvw9FMt+pmBh RABwlKfPXZTgsDsJLrO/UR5hjWGgGRvjd9rFEy7CKHyIhApwB9Tu5tVCj1/5KrY91ndl h3J9izj128AIMRJx2hOwm7ryHQycYQYaxTYxrG3O/3mc1aJ4TcYc5tUyliwTqYlyJzdZ eMzQ== X-Gm-Message-State: ALQs6tD054pOJU6FkKDg+tPyaXp+9KYvKBdLLw2iYOc1qGZq3+EPDA/N smFUUwWTb37d5h64qkdaycJFX5gdwf6LKo6I5XyHZg== X-Received: by 2002:aca:ed8a:: with SMTP id l132-v6mr6092878oih.181.1523553841267; Thu, 12 Apr 2018 10:24:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:bf5:0:0:0:0:0 with HTTP; Thu, 12 Apr 2018 10:24:00 -0700 (PDT) X-Originating-IP: [176.63.54.97] In-Reply-To: <20180412162500.GA24728@bombadil.infradead.org> References: <20180412150826.20988-1-mszeredi@redhat.com> <20180412150826.20988-2-mszeredi@redhat.com> <20180412162500.GA24728@bombadil.infradead.org> From: Miklos Szeredi Date: Thu, 12 Apr 2018 19:24:00 +0200 Message-ID: Subject: Re: [RFC PATCH 01/35] vfs: clean up dedup To: Matthew Wilcox Cc: Miklos Szeredi , overlayfs , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org 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 Thu, Apr 12, 2018 at 6:25 PM, Matthew Wilcox wrote: > On Thu, Apr 12, 2018 at 05:07:52PM +0200, Miklos Szeredi wrote: >> +ssize_t vfs_dedupe_file_range_one(struct file *src_file, u64 src_pos, u64 len, >> + struct file *dst_file, u64 dst_pos) > > Why u64 instead of loff_t? Peculiarity of f_op->dedupe_file_range(). I think a cleanup of copyfile/clone/dedupe interfaces would be good. Perhaps merge them into one? Or just merge copyfile/clone? Even if not merging it should make sense to make argument types and argument order the same. Thanks, Miklos