Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4444262ybb; Tue, 14 Apr 2020 07:27:40 -0700 (PDT) X-Google-Smtp-Source: APiQypItxe4BmX0GoliCV85Id5HgYaeNfbS1CwC0RlIHvHLNTk314vTNMA5vogmDeGVsNdh9he7j X-Received: by 2002:a17:906:d1c3:: with SMTP id bs3mr358408ejb.334.1586874460409; Tue, 14 Apr 2020 07:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586874460; cv=none; d=google.com; s=arc-20160816; b=u4JM9iyaSoB9NVV15IGQVGtryzkLRTyh9dq0ytq/xiA5auSyR49MeUkxWLp5jfc6Y0 nU6D4X7nBB363h+P9aOoylLdVpQhlZOL5IE9RYj6u9iO3UgfRNwxbKoGgEDgh7UuPRbp 8TqrTz0ZKRKNd9+ZqJLNBVz4YlX2N2U83mHnfQrQXbBPgrGOR5X6VL5dspMRuEw158T1 OJy6AnuMT5zfcdP5BCXqW8zwbSMBeCSssJFebRQlbiD9xILAGrneKhtD+iDYaPr4jeyc RftoW/SfOmuN+HEaHCfvDBX3jIHBtPo1soLI8Cn3duxBEmkZ7runMhU9UXZTl5qSLOuc XJzg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=lCKH9//GDUVyra9MYbJtXuz/rft75HC1YdEpud3oR/w=; b=cCVbOJAo7h4oP1v3d0WUUIlybiodG6Knzg+R2Vs51gE6qr9N47OW3UiDov2pJp36Uj ciWdgQlGcQBRvmT4+nQaJJColXJcRPoISWmX4iTQzVCptn7LaOrOLn9QUI4NhuYe8kLN 3Q+ymOKYoWQx3LdTi0OnTaKuRg/b5FhDoURMVhsGBCN1mZ4OFeYzEyphJ5irYmVzww3W for2PKoG0YovEHRwwybLMMfZu+DLCaBV8Y36aMJQNQdFZZbdPiq9nmZM2yu0aPbco1v7 lSMBdRWWpB1keRn5zOel5/gI2IwVHip+W946KAPbVlyGZqL0tXzCqDGSxHiP4CwMrLkL bC5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=wDyM6KBF; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v15si7948602ejh.490.2020.04.14.07.27.15; Tue, 14 Apr 2020 07:27:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=wDyM6KBF; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405414AbgDNFMh (ORCPT + 99 others); Tue, 14 Apr 2020 01:12:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2405410AbgDNFMf (ORCPT ); Tue, 14 Apr 2020 01:12:35 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05B00C008748 for ; Mon, 13 Apr 2020 22:12:34 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id p6so15320022edu.10 for ; Mon, 13 Apr 2020 22:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lCKH9//GDUVyra9MYbJtXuz/rft75HC1YdEpud3oR/w=; b=wDyM6KBFKLlwwTmGUBwUr0f9mEfcZL3MHRC2qD1g8Ri5hzXZNb/yzQj6Pr/ZKsOXDZ i8o1+jiGMZA6uHKUntfBZb+bIsOtO7+1LBUceyEI8O/0tAVI4147/8qj5VnTkwYpzp8p OQwtvf3E1orMQsMGR1mGI4iaBrR52m55wkk2YuddOwJVzEJip2u4dKD8u1dHNHC44qyf 0p6BxMnrbJM4Vt58Ih9rpAxyb+KxIbYh8GXtZEX5seabEA+alTbGBBCsUbEbv7tMGQbY 5acT+NDRcEvCOXYhXjXmABnXdzSRCoer0XRx9DXEbsWcR75NMcPPUrLZjCNRkAkFZcJR U5gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lCKH9//GDUVyra9MYbJtXuz/rft75HC1YdEpud3oR/w=; b=FhUyfq/8OVz5B/aOYf0KQ9mVrQOTh7UZLPM7tC6C35VpG4HImxlgkEkge/Uw/TbQ4L SOZPKlXNbV3XjJ+s6JSnsdAujPp7mx4KOIBuyVEG48oxVA/Hc+h+OCUZA/MXxsFEYff8 Ml4gA6JENBpx7u3hs3vYgcB3csnxe6iqYwvFN4AFqd7ifbNdLkOfgSbccgIqkRlbgHDE RLR3k0u6rKddUZSMz8SuEF9OLVjRjELsgOt6XfC4da7P7V/bMVTBch60MBZDKegnsjEZ DI1of1F2XgIJOVZjIxPPk6fvmi/L04NyDbPdB1DvroOY53D71G3v06TDEqbQy83G15pr yoVg== X-Gm-Message-State: AGi0PuYztWf05LsFWNR75Oomrsr3rBSJbKD8arhEzbBUhfs+aNepBW+7 llxNxS7Mrsdr9YKTDfRM0Ab/eYkqAzuEJZMUULkLkA== X-Received: by 2002:a17:906:1e42:: with SMTP id i2mr18225259ejj.317.1586841153456; Mon, 13 Apr 2020 22:12:33 -0700 (PDT) MIME-Version: 1.0 References: <20200413054046.1560106-1-ira.weiny@intel.com> <20200413054046.1560106-10-ira.weiny@intel.com> <20200413161912.GZ6742@magnolia> <20200414043821.GG1649878@iweiny-DESK2.sc.intel.com> In-Reply-To: <20200414043821.GG1649878@iweiny-DESK2.sc.intel.com> From: Dan Williams Date: Mon, 13 Apr 2020 22:12:22 -0700 Message-ID: Subject: Re: [PATCH V7 9/9] Documentation/dax: Update Usage section To: Ira Weiny Cc: "Darrick J. Wong" , Linux Kernel Mailing List , Dave Chinner , Christoph Hellwig , "Theodore Y. Ts'o" , Jan Kara , Jeff Moyer , linux-ext4 , linux-xfs , linux-fsdevel Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Apr 13, 2020 at 9:38 PM Ira Weiny wrote: > > On Mon, Apr 13, 2020 at 09:19:12AM -0700, Darrick J. Wong wrote: > > On Sun, Apr 12, 2020 at 10:40:46PM -0700, ira.weiny@intel.com wrote: > > > From: Ira Weiny > > > > > > Update the Usage section to reflect the new individual dax selection > > > functionality. > > > > Yum. :) > > > > > Signed-off-by: Ira Weiny > > > > > > --- > > > Changes from V6: > > > Update to allow setting FS_XFLAG_DAX any time. > > > Update with list of behaviors from Darrick > > > https://lore.kernel.org/lkml/20200409165927.GD6741@magnolia/ > > > > > > Changes from V5: > > > Update to reflect the agreed upon semantics > > > https://lore.kernel.org/lkml/20200405061945.GA94792@iweiny-DESK2.sc.intel.com/ > > > --- > > > Documentation/filesystems/dax.txt | 166 +++++++++++++++++++++++++++++- > > > 1 file changed, 163 insertions(+), 3 deletions(-) > > > > > > diff --git a/Documentation/filesystems/dax.txt b/Documentation/filesystems/dax.txt > > > index 679729442fd2..af14c1b330a9 100644 > > > --- a/Documentation/filesystems/dax.txt > > > +++ b/Documentation/filesystems/dax.txt > > > @@ -17,11 +17,171 @@ For file mappings, the storage device is mapped directly into userspace. > > > Usage > > > ----- > > > > > > -If you have a block device which supports DAX, you can make a filesystem > > > +If you have a block device which supports DAX, you can make a file system > > > on it as usual. The DAX code currently only supports files with a block > > > size equal to your kernel's PAGE_SIZE, so you may need to specify a block > > > -size when creating the filesystem. When mounting it, use the "-o dax" > > > -option on the command line or add 'dax' to the options in /etc/fstab. > > > +size when creating the file system. > > > + > > > +Currently 2 filesystems support DAX, ext4 and xfs. Enabling DAX on them is > > > +different at this time. > > > > I thought ext2 supports DAX? > > Not that I know of? Does it? Yes. Seemed like a good idea at the time, but in retrospect... In fairness I believe this was also an olive branch to XIP users that were transitioned to DAX, so they did not also need to transition filesystems.