Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258824
b: refs/heads/master
c: 340a0a0
h: refs/heads/master
v: v3
  • Loading branch information
Markus Trippelsdorf authored and Al Viro committed Jul 25, 2011
1 parent 2dd4e47 commit fd00561
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e13889bab3c6b5c839075086d28fe05f71984dda
refs/heads/master: 340a0a01b9675a16201cc4fc4a210eb5b3bc11ce
5 changes: 4 additions & 1 deletion trunk/fs/xfs/linux-2.6/xfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,11 +881,14 @@ xfs_file_aio_write(
/* Handle various SYNC-type writes */
if ((file->f_flags & O_DSYNC) || IS_SYNC(inode)) {
loff_t end = pos + ret - 1;
int error;

xfs_rw_iunlock(ip, iolock);
ret = -xfs_file_fsync(file, pos, end,
error = xfs_file_fsync(file, pos, end,
(file->f_flags & __O_SYNC) ? 0 : 1);
xfs_rw_ilock(ip, iolock);
if (error)
ret = error;
}

out_unlock:
Expand Down

0 comments on commit fd00561

Please sign in to comment.