Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1051097ybh; Tue, 10 Mar 2020 13:35:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuLTUYnSxkn1YhONDRQ2tgPQgtcxD/0NwSMegvpu4HowFCBAJ8ok9QFlHavER4StZ2FPXuW X-Received: by 2002:a05:6830:3148:: with SMTP id c8mr18296742ots.359.1583872525254; Tue, 10 Mar 2020 13:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583872525; cv=none; d=google.com; s=arc-20160816; b=uMDBQZx8GI5MzDIViaeDqe51dc/ReHcLYSENPPhmSjOPcXh8+mQ0WQM4bYmeSnPNP8 ZfUmfm1KeM66gX08Gai7sX21sacLt48PaGRukbqW2zSpqRcK3cXM2MbYKz9Nse5YbdyB ES3tAsxuZ7v815APIt92P6rZzH+ig/tDqL7mqmdBtgzvpLWRQwegPJGyFVNVVZ6XYePC Myo01ZmY/cAOOKohDIogyEDSn0SkndsSK3bySyrR2PJg54PHbcAvnyilbgS/iqzPEhKT 2lcJ5+oiABNlBXXjqCysY+x3n0YCyU6/D/GLiCw9AbDIHGOQr/+Ihe+xVhFScykbeHbV zWuQ== 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=IuAk3iiyWjaaAHQcjrLbiVUBF9ti+LNH3LoLdVoeonk=; b=ckIgsgaEUcTp7fjRW+ydzEQJc+vDkYTPf7K5mthD9P1FDP0D1q6zagPoYf+2/51dli jRNfyJRDhhOFpclL2XbhAx/ZJz/y6OgCLyBbLbKXB+3NJeF2AeMVGwPrdd/J3+edbadA tCOeEtdJPwSWdHO+JkFd2ddQCuaNv3tpyzkgXMZOXkfAPIRLlRGbF4ARTk9FsMA89Sz1 70jREYWwf3+nJGEqgJyTtWUhGG/YUacszQ3gXp4GyIoSMIJ3u0sYCTHP0OWCuhrBI8bq wo9hQp0KGbxWj9jg8eTxL5zz4Ynzls3bvjrllOGFdRlvqDZv6v+hA4nzClt2AysUMr1I np4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LXzaQHj5; 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=pass (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 h25si6446736oie.192.2020.03.10.13.35.13; Tue, 10 Mar 2020 13:35:25 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LXzaQHj5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726380AbgCJUdh (ORCPT + 99 others); Tue, 10 Mar 2020 16:33:37 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:30366 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726283AbgCJUdg (ORCPT ); Tue, 10 Mar 2020 16:33:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583872415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IuAk3iiyWjaaAHQcjrLbiVUBF9ti+LNH3LoLdVoeonk=; b=LXzaQHj5j5Y6SOl7RB0xcm6Q9fyHEjR6dQwqOXSa0kLPhH3ZXskNkQD7urrLEO0PAcJWSO O84t3oE1pIso/NEbXQ1GjbZZVQm2S7BGV3X8bHSZSrMnRW8uJht7wTymbDiYsPmaxL8UUX Ut/M8+vHnheYuNgPjAiYfh1y3sC/v8I= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-436-KXglNHPLN0iwC4j7ViQC-w-1; Tue, 10 Mar 2020 16:33:31 -0400 X-MC-Unique: KXglNHPLN0iwC4j7ViQC-w-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 41916184C80F; Tue, 10 Mar 2020 20:33:30 +0000 (UTC) Received: from horse.redhat.com (unknown [10.18.25.210]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9A76C5D9CA; Tue, 10 Mar 2020 20:33:22 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 0E4F122021D; Tue, 10 Mar 2020 16:33:22 -0400 (EDT) Date: Tue, 10 Mar 2020 16:33:21 -0400 From: Vivek Goyal To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, virtio-fs@redhat.com, Stefan Hajnoczi , "Dr. David Alan Gilbert" , "Michael S. Tsirkin" , Peng Tao Subject: Re: [PATCH 12/20] fuse: Introduce setupmapping/removemapping commands Message-ID: <20200310203321.GF38440@redhat.com> References: <20200304165845.3081-1-vgoyal@redhat.com> <20200304165845.3081-13-vgoyal@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2020 at 08:49:49PM +0100, Miklos Szeredi wrote: > On Wed, Mar 4, 2020 at 5:59 PM Vivek Goyal wrote: > > > > Introduce two new fuse commands to setup/remove memory mappings. This > > will be used to setup/tear down file mapping in dax window. > > > > Signed-off-by: Vivek Goyal > > Signed-off-by: Peng Tao > > --- > > include/uapi/linux/fuse.h | 37 +++++++++++++++++++++++++++++++++++++ > > 1 file changed, 37 insertions(+) > > > > diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h > > index 5b85819e045f..62633555d547 100644 > > --- a/include/uapi/linux/fuse.h > > +++ b/include/uapi/linux/fuse.h > > @@ -894,4 +894,41 @@ struct fuse_copy_file_range_in { > > uint64_t flags; > > }; > > > > +#define FUSE_SETUPMAPPING_ENTRIES 8 > > +#define FUSE_SETUPMAPPING_FLAG_WRITE (1ull << 0) > > +struct fuse_setupmapping_in { > > + /* An already open handle */ > > + uint64_t fh; > > + /* Offset into the file to start the mapping */ > > + uint64_t foffset; > > + /* Length of mapping required */ > > + uint64_t len; > > + /* Flags, FUSE_SETUPMAPPING_FLAG_* */ > > + uint64_t flags; > > + /* Offset in Memory Window */ > > + uint64_t moffset; > > +}; > > + > > +struct fuse_setupmapping_out { > > + /* Offsets into the cache of mappings */ > > + uint64_t coffset[FUSE_SETUPMAPPING_ENTRIES]; > > + /* Lengths of each mapping */ > > + uint64_t len[FUSE_SETUPMAPPING_ENTRIES]; > > +}; > > fuse_setupmapping_out together with FUSE_SETUPMAPPING_ENTRIES seem to be unused. This looks like leftover from the old code. I will get rid of it. Thanks. Vivek