From patchwork Sat Mar 10 18:17:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andiry Xu X-Patchwork-Id: 10273809 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B9F24601A0 for ; Sat, 10 Mar 2018 18:20:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A753928BAE for ; Sat, 10 Mar 2018 18:20:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 981D5293FC; Sat, 10 Mar 2018 18:20:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1540E299C7 for ; Sat, 10 Mar 2018 18:20:30 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 9C72E2258AEFF; Sat, 10 Mar 2018 10:14:09 -0800 (PST) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c05::242; helo=mail-pg0-x242.google.com; envelope-from=jix024@eng.ucsd.edu; receiver=linux-nvdimm@lists.01.org Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2F2A92258AEF5 for ; Sat, 10 Mar 2018 10:14:08 -0800 (PST) Received: by mail-pg0-x242.google.com with SMTP id g12so4844016pgs.0 for ; Sat, 10 Mar 2018 10:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eng.ucsd.edu; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iH00/xQ9tfHRZEA/U67h1Rrj9xoRAtCk8BPanDk+8Ys=; b=VQDSxOqruEanJOcf9ZOqx8gItt7IxX+38+nCAOf75XqIdxgjWc89WIxU/Dgr5nFI8e jTU7R8bDJSc69lAgIHMfDuHlUB+F0Fc1LpZRrTmDLUBsxtU5ItZFT1tiRYaK6PuOwG4A WNzE5eEnSS3eR+8h3tCzTuQzljzNu+XbkubmU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iH00/xQ9tfHRZEA/U67h1Rrj9xoRAtCk8BPanDk+8Ys=; b=CZcN4MMlEOqvF7YL8aCaw7ZcnfOAeldud7YlJtaso6rf7p30OdcEVQC+Q1FTGVfDJS DOX25wZUDvYp1jJoJlIJsUd3T3M1xOPX0ONGmZ9kMlxzVg75e7vKsvIBv+bduJiIU/d+ /9VhAWXEVrmZCVPKIT8bc+5G38hlM4SXMMJr5NTeN5mDqcGXbnlWEjftqoq1paftBnov r+R19gEXmL0jRzDZSnD/t/vQzmn17wah94ea2AN4IE4lUhVK0UR3x0kiihu0JioDau7j HnBH7LyTOOuV7B4bSPMkQt9MqPLgmWF0I79YlXrrHKK+XKQMqTPZxsAwpfQGx8GG5C3o 4K0w== X-Gm-Message-State: AElRT7EYANzFWW/VUOVRHP5tXGaeRY8n4rSIOxlGXew6lEfLR5gual/F Sy5V/yJFczLx1wclnAED3DEshw== X-Google-Smtp-Source: AG47ELvvHqWeKiyIa1mPHGHa/owW2laYDwNleeLoFkceTkatPnShWBhcm7HaYIXvXWDAVSi7t+ARGg== X-Received: by 10.101.80.193 with SMTP id s1mr2217839pgp.254.1520706026514; Sat, 10 Mar 2018 10:20:26 -0800 (PST) Received: from brienza-desktop.8.8.4.4 (andxu.ucsd.edu. [132.239.17.134]) by smtp.gmail.com with ESMTPSA id h80sm9210167pfj.181.2018.03.10.10.20.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 10 Mar 2018 10:20:25 -0800 (PST) From: Andiry Xu To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org Subject: [RFC v2 09/83] Add Kconfig and Makefile Date: Sat, 10 Mar 2018 10:17:50 -0800 Message-Id: <1520705944-6723-10-git-send-email-jix024@eng.ucsd.edu> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520705944-6723-1-git-send-email-jix024@eng.ucsd.edu> References: <1520705944-6723-1-git-send-email-jix024@eng.ucsd.edu> X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: coughlan@redhat.com, miklos@szeredi.hu, Andiry Xu , david@fromorbit.com, jack@suse.com, swanson@cs.ucsd.edu, swhiteho@redhat.com, andiry.xu@gmail.com MIME-Version: 1.0 Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP 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 + 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