Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp119205ybj; Mon, 4 May 2020 17:21:02 -0700 (PDT) X-Google-Smtp-Source: APiQypKHkDdj5C6SQscmOhNHc5LG7zPrDacabwEwjZrusaCpbRTzrRXimB1EMdV3klKBDchOCO3k X-Received: by 2002:a17:906:1186:: with SMTP id n6mr357740eja.45.1588638061870; Mon, 04 May 2020 17:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588638061; cv=none; d=google.com; s=arc-20160816; b=Mt2nPC+TGnApJJSQ0M+1uo4MIz2WPMDB/afNb2Cy/IFjWbWMYrk06gI8JBmBc5So4j UnJs0Gy0ur89zwETnDdoMelhENS043nkEc9g85OZG9c6/vcdvkodZfBMT9D2eHPXLKKI Y3E6YQhH8gm8y9A4BDhF95BezUQ5Lew/3efd68qZyHINrbrZj120orVdW2FflXzg9xo4 Zyk25fSPpy+TfJHpZOJlxmrDRK2mcw1s+sQUGedJmQkkDIEBvyYXyhtSRY3PkDsHrp5s 7vfthF3LwL4GIGLbLSAmlDItiFC/LNHFOu8RFEEYwpxFJdzO8W04RW1bLAgCWh3SsQCv v4LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=i0BH1Xk4JvZTBKWmV49XYT18B2ZfXKOTAbZycFqsp3s=; b=oSMhsBFW8lKYA3lBkL+ZiyZMtIXHgdG7GiBQpE/pRZ8aleaBbUlHoAejRaJBDbFeBb 3GCeBV/xeuuH3LZ3Hg5ERtroxU6/K/aDydByFvBXrzYf1J1QK3XrRXLeyXMNjtqQLe/b DloJ9oRkGX5aBtEZEEGE8+H0XcHahol/LdievD9Laf7M7Jq+vkI+Bipcpces8REREDpl CFMjcxH86YnhzByi2ppuuUPhlARnu/+KICwTwsgPAmYTzcMO5+xuKkI0K/2tAsLum8td TgQTfLbdP7NZLIlIJ9aa55rTfDPHH6F+HYhoBwMUx0dE88py/0jfdzBZ084oaTbMEfHX BajA== ARC-Authentication-Results: i=1; mx.google.com; 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; 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 y25si369731edv.153.2020.05.04.17.20.29; Mon, 04 May 2020 17:21:01 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728318AbgEEAUU (ORCPT + 99 others); Mon, 4 May 2020 20:20:20 -0400 Received: from mga17.intel.com ([192.55.52.151]:23633 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728258AbgEEAUU (ORCPT ); Mon, 4 May 2020 20:20:20 -0400 IronPort-SDR: rk00TNmXbCQ9GCvmdKsthmSpSgeQkhh6rmOSFdYwjJdRH/FH2ojBQAEXf6QOSNJMrpUbb0r/nF jdTVlG2JQ+3w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2020 17:20:19 -0700 IronPort-SDR: k1vUVvQaEJMjKfp0O1z1GRkDHRmiJVeN2zx0krf5kg8Gclm9wzZR9p1+B8TOjDxPzIh6L0DJ8r feipGiwmSnQg== X-IronPort-AV: E=Sophos;i="5.73,354,1583222400"; d="scan'208";a="259517993" Received: from iweiny-desk2.sc.intel.com (HELO localhost) ([10.3.52.147]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2020 17:20:18 -0700 From: ira.weiny@intel.com To: mtk.manpages@gmail.com Cc: Ira Weiny , linux-man@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: [PATCH] man/statx: Add STATX_ATTR_DAX Date: Mon, 4 May 2020 17:20:16 -0700 Message-Id: <20200505002016.1085071-1-ira.weiny@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Ira Weiny Linux 5.8 is slated to have STATX_ATTR_DAX support. https://lore.kernel.org/lkml/20200428002142.404144-4-ira.weiny@intel.com/ https://lore.kernel.org/lkml/20200504161352.GA13783@magnolia/ Add the text to the statx man page. Signed-off-by: Ira Weiny --- man2/statx.2 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/man2/statx.2 b/man2/statx.2 index 2e90f07dbdbc..14c4ab78e7bd 100644 --- a/man2/statx.2 +++ b/man2/statx.2 @@ -468,6 +468,30 @@ The file has fs-verity enabled. It cannot be written to, and all reads from it will be verified against a cryptographic hash that covers the entire file (e.g., via a Merkle tree). +.TP +.BR STATX_ATTR_DAX (since Linux 5.8) +The file is in the DAX (cpu direct access) state. DAX state attempts to +minimize software cache effects for both I/O and memory mappings of this file. +It requires a file system which has been configured to support DAX. +.PP +DAX generally assumes all accesses are via cpu load / store instructions which +can minimize overhead for small accesses, but may adversely affect cpu +utilization for large transfers. +.PP +File I/O is done directly to/from user-space buffers and memory mapped I/O may +be performed with direct memory mappings that bypass kernel page cache. +.PP +While the DAX property tends to result in data being transferred synchronously, +it does not give the same guarantees of O_SYNC where data and the necessary +metadata are transferred together. +.PP +A DAX file may support being mapped with the MAP_SYNC flag, which enables a +program to use CPU cache flush instructions to persist CPU store operations +without an explicit +.BR fsync(2). +See +.BR mmap(2) +for more information. .SH RETURN VALUE On success, zero is returned. On error, \-1 is returned, and -- 2.25.1