Blame SOURCES/1899552-mpo-8.5.0.0-statx.2.patch

bb1c30
From d06094d4469258a722c94f8bb5bc25b5c9711718 Mon Sep 17 00:00:00 2001
bb1c30
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
bb1c30
Date: Fri, 9 Jul 2021 18:34:34 +0200
bb1c30
Subject: [PATCH 1/2] statx.2: add STATX_ATTR_DAX
bb1c30
bb1c30
---
bb1c30
 man-pages/man2/statx.2 | 30 ++++++++++++++++++++++++++++++
bb1c30
 1 file changed, 30 insertions(+)
bb1c30
bb1c30
diff --git a/man-pages/man2/statx.2 b/man-pages/man2/statx.2
bb1c30
index bb04455..686edc8 100644
bb1c30
--- a/man-pages/man2/statx.2
bb1c30
+++ b/man-pages/man2/statx.2
bb1c30
@@ -462,6 +462,36 @@ See
bb1c30
 .TP
bb1c30
 .B STATX_ATTR_ENCRYPTED
bb1c30
 A key is required for the file to be encrypted by the filesystem.
bb1c30
+.TP
bb1c30
+.BR STATX_ATTR_DAX " (since Linux 5.8)"
bb1c30
+The file is in the DAX (cpu direct access) state.
bb1c30
+DAX state attempts to
bb1c30
+minimize software cache effects for both I/O and memory mappings of this file.
bb1c30
+It requires a file system which has been configured to support DAX.
bb1c30
+.IP
bb1c30
+DAX generally assumes all accesses are via CPU load / store instructions
bb1c30
+which can minimize overhead for small accesses,
bb1c30
+but may adversely affect CPU utilization for large transfers.
bb1c30
+.IP
bb1c30
+File I/O is done directly to/from user-space buffers and memory mapped I/O may
bb1c30
+be performed with direct memory mappings that bypass the kernel page cache.
bb1c30
+.IP
bb1c30
+While the DAX property tends to result in data being transferred synchronously,
bb1c30
+it does not give the same guarantees as the
bb1c30
+.B O_SYNC
bb1c30
+flag (see
bb1c30
+.BR open (2)),
bb1c30
+where data and the necessary metadata are transferred together.
bb1c30
+.IP
bb1c30
+A DAX file may support being mapped with the
bb1c30
+.B MAP_SYNC
bb1c30
+flag, which enables a
bb1c30
+program to use CPU cache flush instructions to persist CPU store operations
bb1c30
+without an explicit
bb1c30
+.BR fsync (2).
bb1c30
+See
bb1c30
+.BR mmap (2)
bb1c30
+for more information.
bb1c30
 .SH RETURN VALUE
bb1c30
 On success, zero is returned.
bb1c30
 On error, \-1 is returned, and
bb1c30
-- 
bb1c30
2.31.1
bb1c30