aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dfrag.c
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2010-01-13 20:33:55 -0500
committerAlex Elder <aelder@sgi.com>2010-01-15 16:20:06 -0500
commit3a85cd96d3ab3c6dcf88b81fc6eaddb84e565a43 (patch)
tree9b1cfa8db498d7e76b1aa745254261010814f676 /fs/xfs/xfs_dfrag.c
parente09f98606dcc156de1146c209d45a0d6d5f51c3f (diff)
xfs: add tracing to xfs_swap_extents
To be able to diagnose whether the swap extents function is detecting compatible inode data fork configurations for swapping extents, add tracing points to the code to allow us to see the format of the inode forks before and after the swap. Signed-off-by: Dave Chinner <david@fromorbit.com> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dfrag.c')
-rw-r--r--fs/xfs/xfs_dfrag.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/xfs_dfrag.c b/fs/xfs/xfs_dfrag.c
index 84ca1cf16a1e..f25e54027d10 100644
--- a/fs/xfs/xfs_dfrag.c
+++ b/fs/xfs/xfs_dfrag.c
@@ -254,6 +254,9 @@ xfs_swap_extents(
254 goto out_unlock; 254 goto out_unlock;
255 } 255 }
256 256
257 trace_xfs_swap_extent_before(ip, 0);
258 trace_xfs_swap_extent_before(tip, 1);
259
257 /* check inode formats now that data is flushed */ 260 /* check inode formats now that data is flushed */
258 error = xfs_swap_extents_check_format(ip, tip); 261 error = xfs_swap_extents_check_format(ip, tip);
259 if (error) { 262 if (error) {
@@ -421,6 +424,8 @@ xfs_swap_extents(
421 424
422 error = xfs_trans_commit(tp, XFS_TRANS_SWAPEXT); 425 error = xfs_trans_commit(tp, XFS_TRANS_SWAPEXT);
423 426
427 trace_xfs_swap_extent_after(ip, 0);
428 trace_xfs_swap_extent_after(tip, 1);
424out: 429out:
425 kmem_free(tempifp); 430 kmem_free(tempifp);
426 return error; 431 return error;