summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-04-07 17:52:00 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-02 01:58:39 +0200
commitdde0c2e79848298cc25621ad080d47f94dbd7cce (patch)
tree678f9ff7cba4bb170db9985266efd62521561f46 /fs/btrfs/file.c
parentdirect-io: remove the offset argument to dio_complete (diff)
downloadlinux-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 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 6c376311a9d7..35ce146cceec 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1852,7 +1852,7 @@ static ssize_t btrfs_file_write_iter(struct kiocb *iocb,
BTRFS_I(inode)->last_sub_trans = root->log_transid;
spin_unlock(&BTRFS_I(inode)->lock);
if (num_written > 0) {
- err = generic_write_sync(file, pos, num_written);
+ err = generic_write_sync(iocb, pos, num_written);
if (err < 0)
num_written = err;
}