diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index a7fea3e6f0bb..e96ca97318e3 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c @@ -1033,7 +1033,7 @@ xfs_fs_dirty_inode( STATIC int xfs_fs_write_inode( struct inode *inode, - int sync) + struct writeback_control *wbc) { struct xfs_inode *ip = XFS_I(inode); struct xfs_mount *mp = ip->i_mount; @@ -1057,7 +1057,7 @@ xfs_fs_write_inode( * This prevents the flush path from blocking on inodes inside * another operation right now, they get caught later by xfs_sync. */ - if (sync) { + if (wbc->sync_mode == WB_SYNC_ALL) { xfs_ilock(ip, XFS_ILOCK_SHARED); xfs_iflock(ip); |