aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs/write.c')
-rw-r--r--fs/afs/write.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/afs/write.c b/fs/afs/write.c
index c63a3c8beb73..6be1bc31616a 100644
--- a/fs/afs/write.c
+++ b/fs/afs/write.c
@@ -692,8 +692,9 @@ ssize_t afs_file_write(struct kiocb *iocb, const struct iovec *iov,
692 } 692 }
693 693
694 /* return error values for O_SYNC and IS_SYNC() */ 694 /* return error values for O_SYNC and IS_SYNC() */
695 if (IS_SYNC(&vnode->vfs_inode) || iocb->ki_filp->f_flags & O_SYNC) { 695 if (IS_SYNC(&vnode->vfs_inode) || iocb->ki_filp->f_flags & O_DSYNC) {
696 ret = afs_fsync(iocb->ki_filp, dentry, 1); 696 ret = afs_fsync(iocb->ki_filp, dentry,
697 (iocb->ki_filp->f_flags & __O_SYNC) ? 0 : 1);
697 if (ret < 0) 698 if (ret < 0)
698 result = ret; 699 result = ret;
699 } 700 }