diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-02-10 15:18:55 -0500 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-04-02 00:58:59 +0100 |
commit | fb183963fa094a6973797eb7b4bf7106da565146 (patch) | |
tree | 1d42321c2df929b24501d3dcd2dbe38a9bb5002e /fs | |
parent | 8cba29a4a1a0f968c47c8205b7fe40ae9af9c18f (diff) |
ocfs2 syncs the wrong range...
commit 1b56e98990bcdbb20b9fab163654b9315bf158e8 upstream.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ocfs2/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 1c7d45e293c..d20d64c30b5 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -2389,8 +2389,8 @@ out_dio: if (((file->f_flags & O_DSYNC) && !direct_io) || IS_SYNC(inode) || ((file->f_flags & O_DIRECT) && !direct_io)) { - ret = filemap_fdatawrite_range(file->f_mapping, pos, - pos + count - 1); + ret = filemap_fdatawrite_range(file->f_mapping, *ppos, + *ppos + count - 1); if (ret < 0) written = ret; @@ -2403,8 +2403,8 @@ out_dio: } if (!ret) - ret = filemap_fdatawait_range(file->f_mapping, pos, - pos + count - 1); + ret = filemap_fdatawait_range(file->f_mapping, *ppos, + *ppos + count - 1); } /* |