Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181825
b: refs/heads/master
c: 180040b
h: refs/heads/master
i:
  181823: ae78cfa
v: v3
  • Loading branch information
Christoph Hellwig authored and Alex Elder committed Feb 12, 2010
1 parent ea0f216 commit e6fd0df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 87185517de81101da5afbc82cefdeed6eeaa38fb
refs/heads/master: 180040b89ee2aed88c0a0b1fcf7ada9a512b12e3
10 changes: 8 additions & 2 deletions trunk/fs/xfs/xfs_vnodeops.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,14 @@ xfs_fsync(
*/
xfs_iunlock(ip, XFS_ILOCK_SHARED);
if (xfs_ipincount(ip)) {
error = _xfs_log_force(ip->i_mount, XFS_LOG_SYNC,
&log_flushed);
if (ip->i_itemp->ili_last_lsn) {
error = _xfs_log_force_lsn(ip->i_mount,
ip->i_itemp->ili_last_lsn,
XFS_LOG_SYNC, &log_flushed);
} else {
error = _xfs_log_force(ip->i_mount,
XFS_LOG_SYNC, &log_flushed);
}
}
} else {
/*
Expand Down

0 comments on commit e6fd0df

Please sign in to comment.