diff options
-rw-r--r-- | fs/xfs/linux-2.6/xfs_lrw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_lrw.c b/fs/xfs/linux-2.6/xfs_lrw.c index 7078974a6eee..fde63a3c4ecc 100644 --- a/fs/xfs/linux-2.6/xfs_lrw.c +++ b/fs/xfs/linux-2.6/xfs_lrw.c | |||
@@ -817,7 +817,8 @@ write_retry: | |||
817 | xfs_iunlock(xip, iolock); | 817 | xfs_iunlock(xip, iolock); |
818 | if (need_i_mutex) | 818 | if (need_i_mutex) |
819 | mutex_unlock(&inode->i_mutex); | 819 | mutex_unlock(&inode->i_mutex); |
820 | error2 = sync_page_range(inode, mapping, pos, ret); | 820 | error2 = filemap_write_and_wait_range(mapping, pos, |
821 | pos + ret - 1); | ||
821 | if (!error) | 822 | if (!error) |
822 | error = error2; | 823 | error = error2; |
823 | if (need_i_mutex) | 824 | if (need_i_mutex) |