diff options
-rw-r--r-- | fs/xfs/xfs_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 5fb5a0958a14..6600b264b0b6 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -140,7 +140,7 @@ xfs_file_fsync( | |||
140 | 140 | ||
141 | trace_xfs_file_fsync(ip); | 141 | trace_xfs_file_fsync(ip); |
142 | 142 | ||
143 | error = filemap_write_and_wait_range(inode->i_mapping, start, end); | 143 | error = file_write_and_wait_range(file, start, end); |
144 | if (error) | 144 | if (error) |
145 | return error; | 145 | return error; |
146 | 146 | ||