From: Al Viro Date: Mon, 10 Feb 2014 20:18:55 +0000 (-0500) Subject: ocfs2 syncs the wrong range... X-Git-Tag: submit/tizen_common/20140905.094502~418 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=313bb2423954fc861816e6c06a513df6334b66d8;p=sdk%2Femulator%2Femulator-kernel.git ocfs2 syncs the wrong range... commit 1b56e98990bcdbb20b9fab163654b9315bf158e8 upstream. Signed-off-by: Al Viro Signed-off-by: Jiri Slaby --- diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index d71903c6068b..f07941160515 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -2371,8 +2371,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; @@ -2385,8 +2385,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); } /*