Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13549741pxu; Sun, 3 Jan 2021 19:50:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyy2GANrtHEr4raLinV6MzQF6Y9uaMvm2z+X6wtt/nRmP1Th+Q3xi6cxYJlNV4gzDhEB4Wk X-Received: by 2002:a17:906:3593:: with SMTP id o19mr64347636ejb.377.1609732238399; Sun, 03 Jan 2021 19:50:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609732238; cv=none; d=google.com; s=arc-20160816; b=Tfh3LO+NEom+OxveEbkhFYRGqVToDi6DdzLrf2w1kbPjwOFqoI79E3ocV+FoNizuwZ /k8rHbjbf2/KgHaHKMKLoBqQzMwhNBCdq7vOm+Y5aWJ2znW0XBHbrxdq+HCWtkM4onPR fZTpwYNZzSmwqpPFg36pyxxOWZA297ctNRDb2pwbSqN7lmPr4rHq1yaF3oNQ1JsC/3mB Qzzfpw0CV3vWKkkERn4plgWlmH+oCQHlGIGAOHqX1A3XeHuzm6SOj1TVrhZB7hI05gwa pBADNi4ob00N6dZeycJnKnkki33jXuUUBdGbN9uLnDCSJ8kNeXMagmjYLBcebkEUSG+V tS/g== 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 :message-id:date:subject:cc:to:from; bh=U7atLo6NWXHxue1tCvOxzxZ16CH0M+jEou1gkigRSMY=; b=SlFswVyPemN1CFh/taLjZp0YY9exjNglqHzw4LmGHh31B/qu68A1d96v6CreTfdZw2 TxmWZ7L7WEKd/v0TbNWk4hgz49hUa5caRJqTkqUKdg9Ld/SbzwthRFlLv+M1cOn//3o3 ZB1AsB191689rCwfsAmppJaEvyAwjlOGeA1+VHTzWOjuhdkw70XB64XjjkOK6btSIXN7 MvNlNwOFBlfJnQ2sbAj4hAjn3SW89CZCMv9Ubz2+s4dmmrbRz1g/NBYKP2AQpXuW5+95 HPVXgmNILaOuB0j0qhstLTMHhdNgEzimwsDu//kvUEKxtDdDfdu6XRokYXbnnfcLkkoP QfnA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si20804417edb.68.2021.01.03.19.50.15; Sun, 03 Jan 2021 19:50:38 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727926AbhADCli (ORCPT + 99 others); Sun, 3 Jan 2021 21:41:38 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:16931 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727922AbhADCli (ORCPT ); Sun, 3 Jan 2021 21:41:38 -0500 X-IronPort-AV: E=Sophos;i="5.78,472,1599494400"; d="scan'208";a="103151571" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 04 Jan 2021 10:40:46 +0800 Received: from G08CNEXMBPEKD06.g08.fujitsu.local (unknown [10.167.33.206]) by cn.fujitsu.com (Postfix) with ESMTP id 81C544CE546D; Mon, 4 Jan 2021 10:40:42 +0800 (CST) Received: from G08CNEXCHPEKD06.g08.fujitsu.local (10.167.33.205) by G08CNEXMBPEKD06.g08.fujitsu.local (10.167.33.206) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 4 Jan 2021 10:40:43 +0800 Received: from localhost.localdomain (10.167.225.206) by G08CNEXCHPEKD06.g08.fujitsu.local (10.167.33.209) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 4 Jan 2021 10:40:42 +0800 From: Hao Li To: CC: , , , , , , , , Subject: [PATCH] Documentation/dax: Update description of DAX policy changing Date: Mon, 4 Jan 2021 10:40:40 +0800 Message-ID: <20210104024040.5381-1-lihao2018.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-yoursite-MailScanner-ID: 81C544CE546D.AB630 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lihao2018.fnst@cn.fujitsu.com X-Spam-Status: No Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 77573fa310d9 ("fs: Kill DCACHE_DONTCACHE dentry even if DCACHE_REFERENCED is set"), changes to DAX policy will take effect as soon as all references to this file are gone. Update the documentation accordingly. Signed-off-by: Hao Li --- Documentation/filesystems/dax.txt | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/Documentation/filesystems/dax.txt b/Documentation/filesystems/dax.txt index 8fdb78f3c6c9..a5af22831087 100644 --- a/Documentation/filesystems/dax.txt +++ b/Documentation/filesystems/dax.txt @@ -84,19 +84,8 @@ Summary described in 6) below. 6. When changing the S_DAX policy via toggling the persistent FS_XFLAG_DAX flag, - the change in behaviour for existing regular files may not occur - immediately. If the change must take effect immediately, the administrator - needs to: - - a) stop the application so there are no active references to the data set - the policy change will affect - - b) evict the data set from kernel caches so it will be re-instantiated when - the application is restarted. This can be achieved by: - - i. drop-caches - ii. a filesystem unmount and mount cycle - iii. a system reboot + the change to existing regular file won't take effect until the file is closed + by all processes or all processes referencing the file are stopped. Details -- 2.29.2