aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-02-10 15:18:55 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-24 00:38:09 -0400
commit52ed96fc71877b15d1090313cc7b63264bdb466b (patch)
treec0d6100ee7285bf232b488187ddd408ee8808408 /fs
parent3e8e77367e833de476abd739847ef47b53dced11 (diff)
ocfs2 syncs the wrong range...
commit 1b56e98990bcdbb20b9fab163654b9315bf158e8 upstream. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/ocfs2/file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index ff54014a24ec..46387e49aa46 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -2374,8 +2374,8 @@ out_dio:
2374 2374
2375 if (((file->f_flags & O_DSYNC) && !direct_io) || IS_SYNC(inode) || 2375 if (((file->f_flags & O_DSYNC) && !direct_io) || IS_SYNC(inode) ||
2376 ((file->f_flags & O_DIRECT) && !direct_io)) { 2376 ((file->f_flags & O_DIRECT) && !direct_io)) {
2377 ret = filemap_fdatawrite_range(file->f_mapping, pos, 2377 ret = filemap_fdatawrite_range(file->f_mapping, *ppos,
2378 pos + count - 1); 2378 *ppos + count - 1);
2379 if (ret < 0) 2379 if (ret < 0)
2380 written = ret; 2380 written = ret;
2381 2381
@@ -2388,8 +2388,8 @@ out_dio:
2388 } 2388 }
2389 2389
2390 if (!ret) 2390 if (!ret)
2391 ret = filemap_fdatawait_range(file->f_mapping, pos, 2391 ret = filemap_fdatawait_range(file->f_mapping, *ppos,
2392 pos + count - 1); 2392 *ppos + count - 1);
2393 } 2393 }
2394 2394
2395 /* 2395 /*