diff options
Diffstat (limited to 'fs/xfs/xfs_dfrag.c')
-rw-r--r-- | fs/xfs/xfs_dfrag.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/xfs/xfs_dfrag.c b/fs/xfs/xfs_dfrag.c index de35d18cc002..584f1ae85cd9 100644 --- a/fs/xfs/xfs_dfrag.c +++ b/fs/xfs/xfs_dfrag.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include "xfs_dfrag.h" | 42 | #include "xfs_dfrag.h" |
43 | #include "xfs_error.h" | 43 | #include "xfs_error.h" |
44 | #include "xfs_rw.h" | 44 | #include "xfs_rw.h" |
45 | #include "xfs_vnodeops.h" | ||
45 | 46 | ||
46 | /* | 47 | /* |
47 | * Syssgi interface for swapext | 48 | * Syssgi interface for swapext |
@@ -199,7 +200,8 @@ xfs_swap_extents( | |||
199 | 200 | ||
200 | if (VN_CACHED(tvp) != 0) { | 201 | if (VN_CACHED(tvp) != 0) { |
201 | xfs_inval_cached_trace(&tip->i_iocore, 0, -1, 0, -1); | 202 | xfs_inval_cached_trace(&tip->i_iocore, 0, -1, 0, -1); |
202 | error = bhv_vop_flushinval_pages(tvp, 0, -1, FI_REMAPF_LOCKED); | 203 | error = xfs_flushinval_pages(tip, 0, -1, |
204 | FI_REMAPF_LOCKED); | ||
203 | if (error) | 205 | if (error) |
204 | goto error0; | 206 | goto error0; |
205 | } | 207 | } |
@@ -265,7 +267,7 @@ xfs_swap_extents( | |||
265 | * fields change. | 267 | * fields change. |
266 | */ | 268 | */ |
267 | 269 | ||
268 | bhv_vop_toss_pages(vp, 0, -1, FI_REMAPF); | 270 | xfs_tosspages(ip, 0, -1, FI_REMAPF); |
269 | 271 | ||
270 | tp = xfs_trans_alloc(mp, XFS_TRANS_SWAPEXT); | 272 | tp = xfs_trans_alloc(mp, XFS_TRANS_SWAPEXT); |
271 | if ((error = xfs_trans_reserve(tp, 0, | 273 | if ((error = xfs_trans_reserve(tp, 0, |