Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp623366pxa; Tue, 11 Aug 2020 10:53:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziDDrTjjy/IGi8ivXdCupGy//RISSSzAjZtRV0f5zUmuTa0hVtPjskEz6+1J50i5ibsWUl X-Received: by 2002:a17:906:1c56:: with SMTP id l22mr26940754ejg.84.1597168395287; Tue, 11 Aug 2020 10:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597168395; cv=none; d=google.com; s=arc-20160816; b=I1Afh+WS4sdWxxtDRZILbBi6N8dEtDqTujriaN9y3AEQziqg2yuvmM0GuEfuy+ttqk 6j48/GI0W+xkpEvK7XOb5Cca1gcq/06Lyj66PBSNF6U3zNerkXviK6eqyJ0R/8zpT+el lXrDhHGApdcDAg/Bkmj2NZhEHyK5ZBWdJ+zSpT+5Qezl2J4DYRDNOXZngGlosChWLTDp Z6aRQrt3/zXA/UXvxVwNdPQ3Sgn50+tQfU9mVg2ECTnfNyv8cEW+9wk6alKtMdRnQq5h Y3PPRagtzLTKhTmXTkiMjkmeKTASXzt3Ckwy3ZtwkGfuC8dMFQ2uOIhqukWAA8hT6Bj/ aLNw== 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=ttmjy05YtDY5fs+rLP1raSH+zo+BvNvZy0wKOqfr0Vs=; b=Y8dtSnxp9xkIiEFomsOX+JKsdMEzUEkRgp+5Umwp+xmpLBK0XaZ17WvapGzhL8PtBU DVcZLqZQBGbNoY/m+3z6QkpnzeqnMmzeUCrLgk3T8uIFE+VVXIJToPz0lICU0+sfbHgf aaNFtNuFAc6/dqoAaqQ94KHvpKzySxjMF1W/BXHxUCaYhA4F7yyr5bV7mQLv5EWjJwW2 cjLDkJ06nQdfJsx2DP7fMLwy+CD10K25+CGJTGGmCt3Id81gImzSXVgEfAQPo8zc/d/f ecZQTdSfqsnX3xHXu+unCY3qouObSeWA7kI+BanDMKFxwQWLfybG4T5QsSGgRblFLhEF iD1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="D/zgFWVi"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si9068838ejk.222.2020.08.11.10.52.50; Tue, 11 Aug 2020 10:53:15 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="D/zgFWVi"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729138AbgHKRoq (ORCPT + 99 others); Tue, 11 Aug 2020 13:44:46 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:48714 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728554AbgHKRop (ORCPT ); Tue, 11 Aug 2020 13:44:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597167884; 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=ttmjy05YtDY5fs+rLP1raSH+zo+BvNvZy0wKOqfr0Vs=; b=D/zgFWVi4xC5wJ8HK80Wd4X4KElPsV8oV0b+PYmvyN/QXYVg/oib9UlONiKJ/M3F3f25pF 8dUZsiCpsnplay3tpkPrnmpdAjlgGzsUCfC0ezEhHd9E3BdjxNMog4J9bahQKoOT/Rzl6A ixUOoeY6Lq00o2v/AtdyAHzDAAnQ/ZU= 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-412-bJdVG4_rPeKuZKndxfh5DQ-1; Tue, 11 Aug 2020 13:44:39 -0400 X-MC-Unique: bJdVG4_rPeKuZKndxfh5DQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 184F2100CCC1; Tue, 11 Aug 2020 17:44:37 +0000 (UTC) Received: from horse.redhat.com (ovpn-117-120.rdu2.redhat.com [10.10.117.120]) by smtp.corp.redhat.com (Postfix) with ESMTP id E1E6D61982; Tue, 11 Aug 2020 17:44:29 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 6A84222036A; Tue, 11 Aug 2020 13:44:29 -0400 (EDT) Date: Tue, 11 Aug 2020 13:44:29 -0400 From: Vivek Goyal To: Dave Chinner 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: <20200811174429.GA497326@redhat.com> References: <20200807195526.426056-1-vgoyal@redhat.com> <20200807195526.426056-14-vgoyal@redhat.com> <20200810220655.GC2079@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200810220655.GC2079@dread.disaster.area> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 11, 2020 at 08:06:55AM +1000, Dave Chinner wrote: > 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(). > Hi Dave, Will rename these functions as you suggested. Vivek