diff options
author | Christoph Hellwig <hch@lst.de> | 2016-03-03 16:04:01 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-04 12:20:10 -0500 |
commit | 97be7ebe53915af504fb491fb99f064c7cf3cb09 (patch) | |
tree | bf2995e974c538c38d5db5c4fbf9486cce478d81 /include/uapi/linux/fs.h | |
parent | 4babf2c5efb79be778d45ebe95d9c9b3c880c83b (diff) | |
download | linux-stable-97be7ebe53915af504fb491fb99f064c7cf3cb09.tar.gz linux-stable-97be7ebe53915af504fb491fb99f064c7cf3cb09.tar.bz2 linux-stable-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.h | 3 |
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 */ |