From b0e5d9834e89aa2c4843536c956373d94f5a50d5 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 6 Nov 2018 02:33:16 +0000 Subject: [PATCH] scst: Add an IOCB_DSYNC backport for kernel versions < v4.7 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7798 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index 2c715f7db..bd5cd22cc 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -349,6 +349,11 @@ static inline int vfs_fsync_backport(struct file *file, int datasync) #define vfs_fsync vfs_fsync_backport #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) +/* See also commit dde0c2e79848 ("fs: add IOCB_SYNC and IOCB_DSYNC") */ +#define IOCB_DSYNC 0 +#endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) && \ LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) /*