summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-04-07 08:52:00 -0700
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-01 19:58:39 -0400
commitdde0c2e79848298cc25621ad080d47f94dbd7cce (patch)
tree678f9ff7cba4bb170db9985266efd62521561f46 /fs/cifs
parent716b9bc0cb50b1c2c15ef6a255c88508350e3462 (diff)
downloadlinux-dde0c2e79848298cc25621ad080d47f94dbd7cce.tar.gz
linux-dde0c2e79848298cc25621ad080d47f94dbd7cce.tar.bz2
linux-dde0c2e79848298cc25621ad080d47f94dbd7cce.zip
fs: add IOCB_SYNC and IOCB_DSYNC
This will allow us to do per-I/O sync file writes, as required by a lot of fileservers or storage targets. XXX: Will need a few additional audits for O_DSYNC Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index cb070aa88e57..b22b68ccfbe5 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -2688,7 +2688,7 @@ out:
inode_unlock(inode);
if (rc > 0) {
- ssize_t err = generic_write_sync(file, iocb->ki_pos - rc, rc);
+ ssize_t err = generic_write_sync(iocb, iocb->ki_pos - rc, rc);
if (err < 0)
rc = err;
}