diff options
author | Christoph Hellwig <hch@lst.de> | 2016-04-07 17:52:00 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-02 01:58:39 +0200 |
commit | dde0c2e79848298cc25621ad080d47f94dbd7cce (patch) | |
tree | 678f9ff7cba4bb170db9985266efd62521561f46 /mm/filemap.c | |
parent | direct-io: remove the offset argument to dio_complete (diff) | |
download | linux-dde0c2e79848298cc25621ad080d47f94dbd7cce.tar.xz 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 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index cb36db9f4107..8345d6d3436a 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2794,7 +2794,7 @@ ssize_t generic_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; } |