summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/fs.h
diff options
context:
space:
mode:
authorChristoph Hellwig2016-03-03 16:04:01 +0100
committerAl Viro2016-03-04 18:20:10 +0100
commit97be7ebe53915af504fb491fb99f064c7cf3cb09 (patch)
treebf2995e974c538c38d5db5c4fbf9486cce478d81 /include/uapi/linux/fs.h
parentx86: wire up preadv2 and pwritev2 (diff)
downloadkernel-qcow2-linux-97be7ebe53915af504fb491fb99f064c7cf3cb09.tar.gz
kernel-qcow2-linux-97be7ebe53915af504fb491fb99f064c7cf3cb09.tar.xz
kernel-qcow2-linux-97be7ebe53915af504fb491fb99f064c7cf3cb09.zip
vfs: add the RWF_HIPRI flag for preadv2/pwritev2
This adds a flag that tells the file system that this is a high priority request for which it's worth to poll the hardware. The flag is purely advisory and can be ignored if not supported. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Stephen Bates <stephen.bates@pmcs.com> Tested-by: Stephen Bates <stephen.bates@pmcs.com> Acked-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/uapi/linux/fs.h')
-rw-r--r--include/uapi/linux/fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h
index 41e0433b4a83..847c656729f8 100644
--- a/include/uapi/linux/fs.h
+++ b/include/uapi/linux/fs.h
@@ -305,4 +305,7 @@ struct fsxattr {
#define SYNC_FILE_RANGE_WRITE 2
#define SYNC_FILE_RANGE_WAIT_AFTER 4
+/* flags for preadv2/pwritev2: */
+#define RWF_HIPRI 0x00000001 /* high priority request, poll if possible */
+
#endif /* _UAPI_LINUX_FS_H */