aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans_ail.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_trans_ail.c')
-rw-r--r--fs/xfs/xfs_trans_ail.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/xfs/xfs_trans_ail.c b/fs/xfs/xfs_trans_ail.c
index 21c6d7ddbc06..a7287354e535 100644
--- a/fs/xfs/xfs_trans_ail.c
+++ b/fs/xfs/xfs_trans_ail.c
@@ -18,15 +18,16 @@
18 */ 18 */
19#include "xfs.h" 19#include "xfs.h"
20#include "xfs_fs.h" 20#include "xfs_fs.h"
21#include "xfs_types.h" 21#include "xfs_log_format.h"
22#include "xfs_log.h" 22#include "xfs_trans_resv.h"
23#include "xfs_trans.h"
24#include "xfs_sb.h" 23#include "xfs_sb.h"
25#include "xfs_ag.h" 24#include "xfs_ag.h"
26#include "xfs_mount.h" 25#include "xfs_mount.h"
26#include "xfs_trans.h"
27#include "xfs_trans_priv.h" 27#include "xfs_trans_priv.h"
28#include "xfs_trace.h" 28#include "xfs_trace.h"
29#include "xfs_error.h" 29#include "xfs_error.h"
30#include "xfs_log.h"
30 31
31#ifdef DEBUG 32#ifdef DEBUG
32/* 33/*
@@ -658,11 +659,13 @@ xfs_trans_ail_update_bulk(
658 if (XFS_LSN_CMP(lsn, lip->li_lsn) <= 0) 659 if (XFS_LSN_CMP(lsn, lip->li_lsn) <= 0)
659 continue; 660 continue;
660 661
662 trace_xfs_ail_move(lip, lip->li_lsn, lsn);
661 xfs_ail_delete(ailp, lip); 663 xfs_ail_delete(ailp, lip);
662 if (mlip == lip) 664 if (mlip == lip)
663 mlip_changed = 1; 665 mlip_changed = 1;
664 } else { 666 } else {
665 lip->li_flags |= XFS_LI_IN_AIL; 667 lip->li_flags |= XFS_LI_IN_AIL;
668 trace_xfs_ail_insert(lip, 0, lsn);
666 } 669 }
667 lip->li_lsn = lsn; 670 lip->li_lsn = lsn;
668 list_add(&lip->li_ail, &tmp); 671 list_add(&lip->li_ail, &tmp);
@@ -731,6 +734,7 @@ xfs_trans_ail_delete_bulk(
731 return; 734 return;
732 } 735 }
733 736
737 trace_xfs_ail_delete(lip, mlip->li_lsn, lip->li_lsn);
734 xfs_ail_delete(ailp, lip); 738 xfs_ail_delete(ailp, lip);
735 lip->li_flags &= ~XFS_LI_IN_AIL; 739 lip->li_flags &= ~XFS_LI_IN_AIL;
736 lip->li_lsn = 0; 740 lip->li_lsn = 0;