Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1821649pxb; Mon, 23 Aug 2021 05:37:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztpAvbkFY8nMjlp9I3GCVVOWIipqZsc0lzvPz3Oj/rtC/zqXCXV4Gw/1wVZpyHUX/+STtX X-Received: by 2002:a05:6602:3c5:: with SMTP id g5mr1848827iov.42.1629722230841; Mon, 23 Aug 2021 05:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629722230; cv=none; d=google.com; s=arc-20160816; b=O8H7MiLo5BboA2f1IYmkAS0AP4jXrnUbc6GcwBntzAeurE9Que2d4aQqc1plQklPt3 gTdNdKM4sA9uWQYHBRqbDSxcHhAve9bbYRPuxJj0NOY5F0a4LfJ6RrDWs7/YDdKi48OC 5LCzdZyPdVcijstDDMaR8kgEs6+w5zevzq/X/Esp6wtYkuv+GsYbbOoIr9xKQzPBDEZd mdtdrrInQFmBsmvHVKmy5ObeSnPZRj5UV5NhvLGpwI1QJYxWj5QsOVon1O/dHGdHA3gJ pcasBh8Ftd3ld21CLc59krozXneHAQk8XtsAh8bLan11MfuUzR1H1USsjGlxvmwPVEt5 AiLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5C7whyWIKeHw98K7S+Dkt3BPS2eO5NS8RnNmkSn5luY=; b=vlZv2zLX5JYkkqvWE+KYh6+1dJ6bJlikJYuXRPiGREn5nsDgxYi7BRkbnKqrkdZY/+ shA8iA8aLcgAyuS3NCF3eGsr3z4gxnk+yAjuhxSk3adcjqgVcxBA9K1MlVTPQhmuOeZB lKb1ncnJ4+mwtcxRjQpXShNuGt/j3nrtikq64UcI8+wPLTkMTfyFArNzTgwB6y8jr98P fmrHLowNSA+Hk/cKjkT965TLySvzWyNlW5uzDc4uMZe3PUlU2InhciCAj9C2Y88ECrxc ZWinK8z+LYKCtncKL+HPgUhgRqPitpTyS6WxEGrFVRUIk9E8cAfPieaD/4ecifrtpKYU iPIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=T8y+Xflm; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 h8si15240712jav.8.2021.08.23.05.36.58; Mon, 23 Aug 2021 05:37:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@infradead.org header.s=casper.20170209 header.b=T8y+Xflm; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236907AbhHWMhj (ORCPT + 99 others); Mon, 23 Aug 2021 08:37:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235881AbhHWMhi (ORCPT ); Mon, 23 Aug 2021 08:37:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62570C061575; Mon, 23 Aug 2021 05:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=5C7whyWIKeHw98K7S+Dkt3BPS2eO5NS8RnNmkSn5luY=; b=T8y+XflmiyL+1t1HU/mAGh83W5 LDSRNYJvsbli+/WTIDvmSK/Zz/SQyu4ldfylCSQprkefW+HqVJhWGuzFKLoC2BO/R70t7TRJjd3qg qdvi64yD2ZMP+RKhHkOW2vlhL4JCH2+KRpyWbuC6LOn/u6JYjZCvIallAAhcT5eox0e90Y2cP8CuQ 1AmnzW2lhHG1ioWc26U1Nv9R2EbIyDrodZ+K3k3aEXWRT6LXRiV/nU8q3PBKm+aON3Mjp59eDWjOK d30/8OLsVpCsY9UI9sjvx+Zl1Vj6oN6Q7pYxSGxOqCMee8vPYLIOAzlFfGRDam8eFO99yhSBjA03M znn6Nt3w==; Received: from [2001:4bb8:193:fd10:c6e8:3c08:6f8b:cbf0] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mI9BD-009j1P-LH; Mon, 23 Aug 2021 12:36:10 +0000 From: Christoph Hellwig To: Dan Williams , Vishal Verma , Dave Jiang Cc: Mike Snitzer , Matthew Wilcox , linux-xfs@vger.kernel.org, nvdimm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: [PATCH 1/9] fsdax: improve the FS_DAX Kconfig description and help text Date: Mon, 23 Aug 2021 14:35:08 +0200 Message-Id: <20210823123516.969486-2-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210823123516.969486-1-hch@lst.de> References: <20210823123516.969486-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Rename the main option text to clarify it is for file system access, and add a bit of text that explains how to actually switch a nvdimm to a fsdax capable state. Signed-off-by: Christoph Hellwig --- fs/Kconfig | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/fs/Kconfig b/fs/Kconfig index a7749c126b8e..37e4441119cf 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -43,7 +43,7 @@ source "fs/f2fs/Kconfig" source "fs/zonefs/Kconfig" config FS_DAX - bool "Direct Access (DAX) support" + bool "File system based Direct Access (DAX) support" depends on MMU depends on !(ARM || MIPS || SPARC) select DEV_PAGEMAP_OPS if (ZONE_DEVICE && !FS_DAX_LIMITED) @@ -53,8 +53,19 @@ config FS_DAX Direct Access (DAX) can be used on memory-backed block devices. If the block device supports DAX and the filesystem supports DAX, then you can avoid using the pagecache to buffer I/Os. Turning - on this option will compile in support for DAX; you will need to - mount the filesystem using the -o dax option. + on this option will compile in support for DAX. + + For a DAX device to support file system access it needs to have + struct pages. For the nfit based NVDIMMs this can be enabled + using the ndctl utility: + + # ndctl create-namespace --force --reconfig=namespace0.0 \ + --mode=fsdax --map=mem + + For ndctl to work CONFIG_DEV_DAX needs to be enabled as well. + For most file systems DAX support needs to be manually enable + globally or per-inode using a mount option as well. See the + file system documentation for details. If you do not have a block device that is capable of using this, or if unsure, say N. Saying Y will increase the size of the kernel -- 2.30.2