ocfs2 syncs the wrong range...
Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -2393,8 +2393,8 @@ out_dio:
|
|||||||
|
|
||||||
if (((file->f_flags & O_DSYNC) && !direct_io) || IS_SYNC(inode) ||
|
if (((file->f_flags & O_DSYNC) && !direct_io) || IS_SYNC(inode) ||
|
||||||
((file->f_flags & O_DIRECT) && !direct_io)) {
|
((file->f_flags & O_DIRECT) && !direct_io)) {
|
||||||
ret = filemap_fdatawrite_range(file->f_mapping, pos,
|
ret = filemap_fdatawrite_range(file->f_mapping, *ppos,
|
||||||
pos + count - 1);
|
*ppos + count - 1);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
written = ret;
|
written = ret;
|
||||||
|
|
||||||
@@ -2407,8 +2407,8 @@ out_dio:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
ret = filemap_fdatawait_range(file->f_mapping, pos,
|
ret = filemap_fdatawait_range(file->f_mapping, *ppos,
|
||||||
pos + count - 1);
|
*ppos + count - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user