summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-04-07 15:52:00 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-01 23:58:39 (GMT)
commitdde0c2e79848298cc25621ad080d47f94dbd7cce (patch)
tree678f9ff7cba4bb170db9985266efd62521561f46 /fs/f2fs
parent716b9bc0cb50b1c2c15ef6a255c88508350e3462 (diff)
downloadlinux-dde0c2e79848298cc25621ad080d47f94dbd7cce.tar.xz
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/f2fs')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 443e077..51ed838 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -1885,7 +1885,7 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
if (ret > 0) {
ssize_t err;
- err = generic_write_sync(file, iocb->ki_pos - ret, ret);
+ err = generic_write_sync(iocb, iocb->ki_pos - ret, ret);
if (err < 0)
ret = err;
}