Commit 2729423c authored by Torsten Kaiser's avatar Torsten Kaiser Committed by Ben Myers

xfs: Fix xfs_swap_extents() after removal of xfs_flushinval_pages()

Commit fb595814 removed
xfs_flushinval_pages() and changed its callers to use
filemap_write_and_wait() and  truncate_pagecache_range() directly.

But in xfs_swap_extents() this change accidental switched the argument
for 'tip' to 'ip'. This patch switches it back to 'tip'
Signed-off-by: default avatarTorsten Kaiser <just.for.lkml@googlemail.com>
Reviewed-by: default avatarBen Myers <bpm@sgi.com>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent ced55f38
...@@ -246,10 +246,10 @@ xfs_swap_extents( ...@@ -246,10 +246,10 @@ xfs_swap_extents(
goto out_unlock; goto out_unlock;
} }
error = -filemap_write_and_wait(VFS_I(ip)->i_mapping); error = -filemap_write_and_wait(VFS_I(tip)->i_mapping);
if (error) if (error)
goto out_unlock; goto out_unlock;
truncate_pagecache_range(VFS_I(ip), 0, -1); truncate_pagecache_range(VFS_I(tip), 0, -1);
/* Verify O_DIRECT for ftmp */ /* Verify O_DIRECT for ftmp */
if (VN_CACHED(VFS_I(tip)) != 0) { if (VN_CACHED(VFS_I(tip)) != 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment