|
@@ -2013,8 +2013,8 @@ out_dio:
|
|
|
/* buffered aio wouldn't have proper lock coverage today */
|
|
|
BUG_ON(ret == -EIOCBQUEUED && !(file->f_flags & O_DIRECT));
|
|
|
|
|
|
- if ((file->f_flags & O_DSYNC && !direct_io) || IS_SYNC(inode) ||
|
|
|
- (file->f_flags & O_DIRECT && has_refcount)) {
|
|
|
+ if (((file->f_flags & O_DSYNC) && !direct_io) || IS_SYNC(inode) ||
|
|
|
+ ((file->f_flags & O_DIRECT) && has_refcount)) {
|
|
|
ret = filemap_fdatawrite_range(file->f_mapping, pos,
|
|
|
pos + count - 1);
|
|
|
if (ret < 0)
|