From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-f71.google.com (mail-yw1-f71.google.com [209.85.161.71]) by kanga.kvack.org (Postfix) with ESMTP id 26A776B0003 for ; Wed, 10 Oct 2018 02:22:29 -0400 (EDT) Received: by mail-yw1-f71.google.com with SMTP id d76-v6so2303006ywb.7 for ; Tue, 09 Oct 2018 23:22:29 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j18-v6sor3227909ywm.179.2018.10.09.23.22.28 for (Google Transport Security); Tue, 09 Oct 2018 23:22:28 -0700 (PDT) MIME-Version: 1.0 References: <153913023835.32295.13962696655740190941.stgit@magnolia> <153913041692.32295.9928643841686525236.stgit@magnolia> In-Reply-To: <153913041692.32295.9928643841686525236.stgit@magnolia> From: Amir Goldstein Date: Wed, 10 Oct 2018 09:22:16 +0300 Message-ID: Subject: Re: [PATCH 15/25] vfs: plumb RFR_* remap flags through the vfs clone functions Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: "Darrick J. Wong" Cc: Dave Chinner , Eric Sandeen , Linux NFS Mailing List , linux-cifs@vger.kernel.org, overlayfs , linux-xfs , Linux MM , Linux Btrfs , linux-fsdevel , ocfs2-devel@oss.oracle.com On Wed, Oct 10, 2018 at 3:14 AM Darrick J. Wong wrote: > > From: Darrick J. Wong > > Plumb a remap_flags argument through the {do,vfs}_clone_file_range > functions so that clone can take advantage of it. > > Signed-off-by: Darrick J. Wong > --- [...] > diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c > index c8c890c22898..8b22035af4d7 100644 > --- a/fs/overlayfs/file.c > +++ b/fs/overlayfs/file.c > @@ -462,7 +462,7 @@ static loff_t ovl_copyfile(struct file *file_in, loff_t pos_in, > > case OVL_CLONE: > ret = vfs_clone_file_range(real_in.file, pos_in, > - real_out.file, pos_out, len); > + real_out.file, pos_out, len, flags); > break; > > case OVL_DEDUPE: > @@ -509,7 +509,7 @@ static loff_t ovl_remap_file_range(struct file *file_in, loff_t pos_in, > !ovl_inode_upper(file_inode(file_out)))) > return -EPERM; > > - return ovl_copyfile(file_in, pos_in, file_out, pos_out, len, 0, > + return ovl_copyfile(file_in, pos_in, file_out, pos_out, len, flags, > op); > } This patch forgets to change args in ovl_copyfile() function definition. Thanks, Amir.