From c542a59fedfbc254e012dedea53fb112b94f66c1 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 26 Aug 2017 02:58:02 +0200 Subject: [PATCH] fcntl.2: srcfix Signed-off-by: Michael Kerrisk --- man2/fcntl.2 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/man2/fcntl.2 b/man2/fcntl.2 index 194740cf9..735a7a926 100644 --- a/man2/fcntl.2 +++ b/man2/fcntl.2 @@ -1493,12 +1493,15 @@ Furthermore, if there are any asynchronous I/O operations .RB ( io_submit (2)) pending on the file, all outstanding writes will be discarded. +.\" .SS File read/write hints Write life time hints can be used to inform the kernel about the relative -expected life time of writes on a given inode or file. An application may +expected life time of writes on a given inode or file. +An application may use this interface for separating writes into different write classes, so that multiple users or applications running on a single storage back-end -can aggregate their IO patterns in a consistent manner. However, there are +can aggregate their IO patterns in a consistent manner. +However, there are no functional semantics implied by these flags, and different IO classes can use the write life time hints in arbitrary ways so long as they are used consistently. @@ -1518,11 +1521,13 @@ Returns the value of the read/write hint associated with the file descriptor. Sets the read/write hint value associated with the file descriptor. .P If a given file descriptor has not been assigned a read/write hint, then it -shall use the value assigned to the inode, if any. The following read/write +shall use the value assigned to the inode, if any. +The following read/write hints are valid since kernel 4.13: .TP .BR RWH_WRITE_LIFE_NOT_SET -No specific hint has been set. This is the default value. +No specific hint has been set. +This is the default value. .TP .BR RWH_WRITE_LIFE_NONE No specific write life time is associated with this file or inode.