Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp498084pxu; Tue, 5 Jan 2021 17:53:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzugzRbmoRIKYy5UlOBjsscjYuFBbGm7mAhUV/rmHThbtGo4qACCQODwU9l3ZmmnbWQBLJC X-Received: by 2002:a17:906:4a47:: with SMTP id a7mr1397827ejv.345.1609898037438; Tue, 05 Jan 2021 17:53:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609898037; cv=none; d=google.com; s=arc-20160816; b=psVfnNIJGQsrkRd+TNsHHTMibTNaPhan0g03f6/cGMGNmgmxitjMkksg04HpnWLl4b zn4CMz8f3xPVtK6T+v6ENBNxSSLW2Ff4/YXNSKisscLDBvGWisAa0UN8XKEW4qwK2WTb At3nfolFEMlAU7K0kBQZaru3RLuwnEHIz7qXZfm+ajivgsvDt85643XoAqvd4jwnfhur VNeJxZXuHLZi0Anzen8cO1yhYkQ1H65Hp+6883/4RxpNaTvTSRkKzxPwT9AResSnus/p h5VHjoW+MCAnE5SsoRVloJYsD2DdLHpcZgWAHPJo+riJd7CLmdLYRyiwrTsHMTQC0XC4 ZO/w== 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=8Jt/vmiUpqCMECwzcWvdvPnywe2R3n6LkgFKjXj9ygk=; b=Vbnw3bvzDMndtxibIzPfALK1niLI5UdHg7BRHZCsyqcQRsk2KYBJagybh9C4Pmcqco /0h3JtEb8x/hJiM4h8Z8gQlg76gU24pLt0bPFaRdwCzhELaaspDvfKVTSAWSiFHdQY04 YAZwD59/4x62V7Ut4gUai8RPCVRdPbfXnQMHtIj1cRAi4grx9/soAud2Pf4nq/5YvNbH YmCVDkAistuPyFXnbArLEtXgCqgZ395vbGyUeUax4W0a5Nnlf5Gsh64je5mxVKeNgSsy eCzbH26MCCUurDyEz7X/gxvyGvgnDZentuKIAYyDUU4O5R1CwCmuMF3BkjRK8k19Pv3s WG2A== 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 y25si350208ejb.595.2021.01.05.17.53.21; Tue, 05 Jan 2021 17:53:57 -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 S1725877AbhAFBu5 (ORCPT + 99 others); Tue, 5 Jan 2021 20:50:57 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:47475 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725822AbhAFBu4 (ORCPT ); Tue, 5 Jan 2021 20:50:56 -0500 X-IronPort-AV: E=Sophos;i="5.78,478,1599494400"; d="scan'208";a="103220525" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 06 Jan 2021 09:50:06 +0800 Received: from G08CNEXMBPEKD04.g08.fujitsu.local (unknown [10.167.33.201]) by cn.fujitsu.com (Postfix) with ESMTP id 5769B4CE601C; Wed, 6 Jan 2021 09:50:02 +0800 (CST) Received: from G08CNEXCHPEKD06.g08.fujitsu.local (10.167.33.205) by G08CNEXMBPEKD04.g08.fujitsu.local (10.167.33.201) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 6 Jan 2021 09:50:01 +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; Wed, 6 Jan 2021 09:50:02 +0800 From: Hao Li To: CC: , , , , , , , , Subject: [PATCH v2] Documentation/dax: Update description of DAX policy changing Date: Wed, 6 Jan 2021 09:50:00 +0800 Message-ID: <20210106015000.5263-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: 5769B4CE601C.AE19D 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 --- Changes in v2: * simplify sentences and fix style problems. Documentation/filesystems/dax.txt | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/Documentation/filesystems/dax.txt b/Documentation/filesystems/dax.txt index 8fdb78f3c6c9..e03c20564f3a 100644 --- a/Documentation/filesystems/dax.txt +++ b/Documentation/filesystems/dax.txt @@ -83,20 +83,9 @@ Summary directories. This has runtime constraints and limitations that are 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 + 6. When changing the S_DAX policy via toggling the persistent FS_XFLAG_DAX + flag, the change to existing regular files won't take effect until the + files are closed by all processes. Details -- 2.29.2