Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4666843pxa; Mon, 10 Aug 2020 15:08:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz608v1CqsdUs15LRunsr2kOddaJin4FyOr8QSo50JoOiTim8cCqbpFbJa49beIFdztOi4o X-Received: by 2002:a05:6402:2206:: with SMTP id cq6mr17609924edb.349.1597097308464; Mon, 10 Aug 2020 15:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597097308; cv=none; d=google.com; s=arc-20160816; b=h+EmQ/vEQ8L+XGSnt5BEGcCjjlTbytF/GhngfhB+gb9Pc7GO4C0zrsOe9Nla1mSmLE yAyvbSPBw07er6RyNUto+M7uV26YZHTXcGRW8GN8/G3gOLd00GOk5kokVn2fzzGBgkwT FN0Jq72tX/TPSGb7g3Gn3Ip8wMKLasWZeu+PFrJ4ph/uIM7Aa5/slgRpAZasOlxy8fVW ygAYifHjjsUH7u7fXQBenGFJ9I472fW12H0RkE0QPB8WA/WYT3hemhSJmCW9sPRhla1x 5oUFPJPTBRIY9tc6iNtCyPZG/VxhFf9segF/3rwgEsbvEcSD8XbduEIXVrRXWWlF+o1H cwyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vlgqiYbhBwy4NlETr/YVzCNvanhADdwGBFEs+Jar7gI=; b=gY8OnHrsdavwWdYKaEDcp9X6Ws3wGdISoWVmEX3hC3SB0rGq1t7K8pZewhAfFw6JUP FRTGKLIhzxBr0i6aOrKa7WPuIUQrkZIZ66ks30lUEapHGGmZ4br6h+QHgziqFlupALxe m5f4kzJ4CVbz8Rj3uIz1BpVIe6WaCbFXs/wmVDtSVdKoWLCq0v6GGWyZS3qU4p5D+I+A PR8VnkjHGNZfalICFCbJEQmer5tbc1Sz80l+3ywBkPlM6H9f/SlSaDhtT0RMqsNQyNDg 2LPDwiw/k73/zl0vuCVA2GFKVXsrQNFY7QbxUEynKEV/bCO7xxeVsOZhlcXJHoHOCriR 3nkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si11358284ejs.414.2020.08.10.15.08.05; Mon, 10 Aug 2020 15:08:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726955AbgHJWHD (ORCPT + 99 others); Mon, 10 Aug 2020 18:07:03 -0400 Received: from mail108.syd.optusnet.com.au ([211.29.132.59]:43923 "EHLO mail108.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbgHJWHC (ORCPT ); Mon, 10 Aug 2020 18:07:02 -0400 Received: from dread.disaster.area (pa49-180-53-24.pa.nsw.optusnet.com.au [49.180.53.24]) by mail108.syd.optusnet.com.au (Postfix) with ESMTPS id 7B31E1AAC7F; Tue, 11 Aug 2020 08:06:56 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1k5FwV-0007mY-7u; Tue, 11 Aug 2020 08:06:55 +1000 Date: Tue, 11 Aug 2020 08:06:55 +1000 From: Dave Chinner To: Vivek Goyal Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, virtio-fs@redhat.com, miklos@szeredi.hu, stefanha@redhat.com, dgilbert@redhat.com, Miklos Szeredi , Liu Bo , Peng Tao Subject: Re: [PATCH v2 13/20] fuse, dax: Implement dax read/write operations Message-ID: <20200810220655.GC2079@dread.disaster.area> References: <20200807195526.426056-1-vgoyal@redhat.com> <20200807195526.426056-14-vgoyal@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200807195526.426056-14-vgoyal@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=LPwYv6e9 c=1 sm=1 tr=0 a=moVtWZxmCkf3aAMJKIb/8g==:117 a=moVtWZxmCkf3aAMJKIb/8g==:17 a=kj9zAlcOel0A:10 a=y4yBn9ojGxQA:10 a=7-415B0cAAAA:8 a=KqUJ7u37zmrocqc7xm4A:9 a=iL2FK-9NOCaYj0ZJ:21 a=0foCJPwPtQ_ghwrP:21 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 07, 2020 at 03:55:19PM -0400, Vivek Goyal wrote: > This patch implements basic DAX support. mmap() is not implemented > yet and will come in later patches. This patch looks into implemeting > read/write. .... > +static int iomap_begin_setup_new_mapping(struct inode *inode, loff_t pos, > + loff_t length, unsigned flags, > + struct iomap *iomap) please doin't use the iomap_* namespace even for static functions in filesystem code. This really doesn't have anything to do with iomap except that whatever fuse sets up is used to fill an iomap. i.e. fuse_setup_new_dax_mapping() would be far more appropriate name. > +static int iomap_begin_upgrade_mapping(struct inode *inode, loff_t pos, > + loff_t length, unsigned flags, > + struct iomap *iomap) ditto: fuse_upgrade_dax_mapping(). Cheers, Dave. -- Dave Chinner david@fromorbit.com