From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-f197.google.com (mail-yb1-f197.google.com [209.85.219.197]) by kanga.kvack.org (Postfix) with ESMTP id 2F4B66B000A for ; Wed, 10 Oct 2018 02:39:57 -0400 (EDT) Received: by mail-yb1-f197.google.com with SMTP id a15-v6so1997632ybm.11 for ; Tue, 09 Oct 2018 23:39:57 -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 190-v6sor9698061ybv.160.2018.10.09.23.39.56 for (Google Transport Security); Tue, 09 Oct 2018 23:39:56 -0700 (PDT) MIME-Version: 1.0 References: <153913023835.32295.13962696655740190941.stgit@magnolia> <153913041692.32295.9928643841686525236.stgit@magnolia> In-Reply-To: From: Amir Goldstein Date: Wed, 10 Oct 2018 09:39:44 +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 9:22 AM Amir Goldstein wrote: > > 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. > Sorry, it was already there. Thanks, Amir.