Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60c48674 authored by Tao Ma's avatar Tao Ma Committed by Joel Becker
Browse files

ocfs2: Add parenthesis to wrap the check for O_DIRECT.



Add parenthesis to wrap the check for O_DIRECT.

Signed-off-by: default avatarTao Ma <tao.ma@oracle.com>
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
parent 0a1ea437
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)