summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/fs.h
diff options
context:
space:
mode:
authorChristoph Hellwig2016-04-07 17:52:03 +0200
committerAl Viro2016-05-02 01:58:39 +0200
commite864f39569f4092c2b2bc72c773b6e486c7e3bd9 (patch)
tree4e2cadd87c25718956f26f11771ae9bf669ab380 /include/uapi/linux/fs.h
parentceph: use generic_write_sync (diff)
downloadkernel-qcow2-linux-e864f39569f4092c2b2bc72c773b6e486c7e3bd9.tar.gz
kernel-qcow2-linux-e864f39569f4092c2b2bc72c773b6e486c7e3bd9.tar.xz
kernel-qcow2-linux-e864f39569f4092c2b2bc72c773b6e486c7e3bd9.zip
fs: add RWF_DSYNC aand RWF_SYNC
This is the per-I/O equivalent of O_DSYNC and O_SYNC, and very useful for all kinds of file servers and storage targets. Signed-off-by: Christoph Hellwig <hch@lst.de> 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h
index a079d50376e1..e21fe04acc12 100644
--- a/include/uapi/linux/fs.h
+++ b/include/uapi/linux/fs.h
@@ -324,5 +324,7 @@ struct fscrypt_policy {
/* flags for preadv2/pwritev2: */
#define RWF_HIPRI 0x00000001 /* high priority request, poll if possible */
+#define RWF_DSYNC 0x00000002 /* per-IO O_DSYNC */
+#define RWF_SYNC 0x00000004 /* per-IO O_SYNC */
#endif /* _UAPI_LINUX_FS_H */