Received: by 10.213.65.16 with SMTP id m16csp48562imf; Sun, 11 Mar 2018 14:33:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELtrFadGI9BgL9kTPOaiETAPk/oxwOypDih4Q1OXQOj3EfhawsRPoAt9nWZA4wvy2UT9s7iR X-Received: by 10.101.93.73 with SMTP id e9mr4848554pgt.264.1520804013223; Sun, 11 Mar 2018 14:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520804013; cv=none; d=google.com; s=arc-20160816; b=JrQ2vsYqM3bbEfHDLf/vcHSRg+FLkFg6SVLuwYW8RLy2lgSS4rwZoNluK0EnVs18Ok mDJzyYVR5F2VioUwt2qx7m9k2iRwz/ply1VQp7S0TgKFTYz/8/BHtiavWnimdoLDPio/ RBi3Kxbh2WzwHnaWJfFoA/OL3wZ5qHoOyEYPuJdLbnnIrQFQal9kNnK7YMAXSjAkOWTZ rpXZ0liaLTvE0C+schx3SuYIf/EBnrbl40D7v7HkckhBHw7Gvt4osEqIgA/VHpxwb96E pRVagf8QNMch4DTKYL8dCb3N1d5nBdYWa5+PDiZf9nQQubZrBjMfje/YeYeW9BMOK9ZJ AkWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=b6RXJ5sQpW0ZldiO/SJvCfKWMGe0NXybU7GU4gE1Kvk=; b=ZdbzgKZlGPkJqlMlZeyEE7L/8RHve48nYt8fyx+8gJomStu+Wgqt7w0t5xjZv1gI4g GelucJxXULSkIhzypdQ0Kzd7M+uo2O4+9wwNDiCbHFmr2KURBWVmOn4m2803KusRujDI fdcF/+GD6wCu3gai7OTgZppjruYM+xHt7n/iPlysEwdz9a0Sl+GGqREqoqNnOOI7Ujtw CfOytCCQhBQ8wSJL06odxCB6mbKdFx/rpdTYU00h61yGZUI8w17Z+izJMs1BCAxvFH42 yMHY0FKyApbKIOxJseItI0O9t1dBKhsRtv/BK9R8/TO9UM8aMFvDlJgzjYw75XUT5PcC 0Lqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eng.ucsd.edu header.s=google header.b=L1jM13l2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e28si4104206pgn.311.2018.03.11.14.33.18; Sun, 11 Mar 2018 14:33:33 -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=@eng.ucsd.edu header.s=google header.b=L1jM13l2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932499AbeCKVcM (ORCPT + 99 others); Sun, 11 Mar 2018 17:32:12 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:35228 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932275AbeCKVcK (ORCPT ); Sun, 11 Mar 2018 17:32:10 -0400 Received: by mail-it0-f68.google.com with SMTP id v194-v6so8959299itb.0 for ; Sun, 11 Mar 2018 14:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eng.ucsd.edu; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=b6RXJ5sQpW0ZldiO/SJvCfKWMGe0NXybU7GU4gE1Kvk=; b=L1jM13l2fZVG7xK/ZWPE6Lg2wwl7zpgB39BAJVcB8hK4qg7bmGdUzTZyGsxF82QEuI HvZkYr8y0MkYakzI6eL6dxzrFzJr5bwRAj+zq60zLCtx9DX+9jdP6jLB6LoN+4aZEKkT QBkxPCq7N6mtr/0IPd2pEIaUYNVLh4FaI43mM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=b6RXJ5sQpW0ZldiO/SJvCfKWMGe0NXybU7GU4gE1Kvk=; b=Te9nKaITRO3Qwklhmi5cN+MGPByedMB/dZMD64DkpAsWqVA4lwYjTImsjaw7JQh+NN G/9m9ewQlKtAp1FnDxNGtBZFru4QFv9JY1nMaNugcQzy71KHBKzbZV8saUT27+PTV29v 3eAeyKtOZ1G8lQSbJUSrBLokJRNQNbSgnbFf7g7y4SxVWQJI1nXXqvFm1/4g+Ytc4fO5 sk+GJSz7ZtCPSdz2bmQrp3phx9ZQxhu5+/F+EBMNmCjcENVG6m/4CZYN2meWmJdIFyS4 BrmfRmEZZ3s1HM3PZQeZ9Rm8206ima50cxLEH7DS2pMh+lkraFyWSMYNdOrgKb0ipfJr TBUg== X-Gm-Message-State: AElRT7ETM6HT7m6FMc+sijHLAo6GZaQb9TtD2QXU2/57eNNrQEyq+Xia fg1SRtYOrPylxDMd1IYRdfy7dm16Mhcgyfjo7F5qmg== X-Received: by 10.36.111.4 with SMTP id x4mr6214626itb.147.1520803930056; Sun, 11 Mar 2018 14:32:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.195.72 with HTTP; Sun, 11 Mar 2018 14:32:09 -0700 (PDT) In-Reply-To: <53fde8ab-60df-be2e-002e-f1d7f04e933b@gmail.com> References: <1520705944-6723-1-git-send-email-jix024@eng.ucsd.edu> <1520705944-6723-10-git-send-email-jix024@eng.ucsd.edu> <53fde8ab-60df-be2e-002e-f1d7f04e933b@gmail.com> From: Andiry Xu Date: Sun, 11 Mar 2018 14:32:09 -0700 Message-ID: Subject: Re: [RFC v2 09/83] Add Kconfig and Makefile To: Nikolay Borisov Cc: Linux FS Devel , linux-kernel@vger.kernel.org, "linux-nvdimm@lists.01.org" , Dan Williams , "Rudoff, Andy" , coughlan@redhat.com, Steven Swanson , Dave Chinner , jack@suse.com, swhiteho@redhat.com, miklos@szeredi.hu, Jian Xu , Andiry Xu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 11, 2018 at 5:15 AM, Nikolay Borisov wrote: > > > On 10.03.2018 20:17, Andiry Xu wrote: >> From: Andiry Xu >> >> Signed-off-by: Andiry Xu >> --- >> fs/Kconfig | 2 ++ >> fs/Makefile | 1 + >> fs/nova/Kconfig | 15 +++++++++++++++ >> fs/nova/Makefile | 7 +++++++ >> 4 files changed, 25 insertions(+) >> create mode 100644 fs/nova/Kconfig >> create mode 100644 fs/nova/Makefile >> >> diff --git a/fs/Kconfig b/fs/Kconfig >> index bc821a8..5e9ff3e 100644 >> --- a/fs/Kconfig >> +++ b/fs/Kconfig >> @@ -58,6 +58,8 @@ config FS_DAX_PMD >> depends on ZONE_DEVICE >> depends on TRANSPARENT_HUGEPAGE >> >> +source "fs/nova/Kconfig" >> + >> # Selected by DAX drivers that do not expect filesystem DAX to support >> # get_user_pages() of DAX mappings. I.e. "limited" indicates no support >> # for fork() of processes with MAP_SHARED mappings or support for >> diff --git a/fs/Makefile b/fs/Makefile >> index add789e..65ea619 100644 >> --- a/fs/Makefile >> +++ b/fs/Makefile >> @@ -113,6 +113,7 @@ obj-$(CONFIG_OMFS_FS) += omfs/ >> obj-$(CONFIG_JFS_FS) += jfs/ >> obj-$(CONFIG_XFS_FS) += xfs/ >> obj-$(CONFIG_9P_FS) += 9p/ >> +obj-$(CONFIG_NOVA_FS) += nova/ >> obj-$(CONFIG_AFS_FS) += afs/ >> obj-$(CONFIG_NILFS2_FS) += nilfs2/ >> obj-$(CONFIG_BEFS_FS) += befs/ >> diff --git a/fs/nova/Kconfig b/fs/nova/Kconfig >> new file mode 100644 >> index 0000000..c1c692e >> --- /dev/null >> +++ b/fs/nova/Kconfig >> @@ -0,0 +1,15 @@ >> +config NOVA_FS >> + tristate "NOVA: log-structured file system for non-volatile memories" >> + depends on FS_DAX >> + select CRC32 > > What do you need crc32 for? Selecting libcrc32c is enough to do "the > right thing" > I think this is the legacy of the removed NOVA-Fortis code. I will double check. Thanks, Andiry >> + select LIBCRC32C >> + help >> + If your system has a block of fast (comparable in access speed to >> + system memory) and non-volatile byte-addressable memory and you wish >> + to mount a light-weight filesystem with strong consistency support >> + over it, say Y here. >> + >> + To compile this as a module, choose M here: the module will be >> + called nova. >> + >> + If unsure, say N. >> diff --git a/fs/nova/Makefile b/fs/nova/Makefile >> new file mode 100644 >> index 0000000..eb19646 >> --- /dev/null >> +++ b/fs/nova/Makefile >> @@ -0,0 +1,7 @@ >> +# >> +# Makefile for the linux NOVA filesystem routines. >> +# >> + >> +obj-$(CONFIG_NOVA_FS) += nova.o >> + >> +nova-y := bbuild.o inode.o rebuild.o super.o >>