]> Pileus Git - ~andy/linux/blobdiff - fs/xfs/xfs_trans.c
Merge remote branch 'kumar/merge' into merge
[~andy/linux] / fs / xfs / xfs_trans.c
index 76922793f64fa0d58606a4411f008ba8b9e88259..d1f24858ccc4d365db467f8bdbe222ef4511d354 100644 (file)
@@ -608,10 +608,8 @@ STATIC void
 xfs_trans_free(
        struct xfs_trans        *tp)
 {
-       struct xfs_busy_extent  *busyp, *n;
-
-       list_for_each_entry_safe(busyp, n, &tp->t_busy, list)
-               xfs_alloc_busy_clear(tp->t_mountp, busyp);
+       xfs_alloc_busy_sort(&tp->t_busy);
+       xfs_alloc_busy_clear(tp->t_mountp, &tp->t_busy);
 
        atomic_dec(&tp->t_mountp->m_active_trans);
        xfs_trans_free_dqinfo(tp);