diff options
Diffstat (limited to 'fs/xfs/xfs_trans.c')
-rw-r--r-- | fs/xfs/xfs_trans.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index 4e1c22a23be5..ad137efc8702 100644 --- a/fs/xfs/xfs_trans.c +++ b/fs/xfs/xfs_trans.c | |||
@@ -1383,11 +1383,12 @@ xfs_trans_chunk_committed( | |||
1383 | xfs_log_item_desc_t *lidp; | 1383 | xfs_log_item_desc_t *lidp; |
1384 | xfs_log_item_t *lip; | 1384 | xfs_log_item_t *lip; |
1385 | xfs_lsn_t item_lsn; | 1385 | xfs_lsn_t item_lsn; |
1386 | struct xfs_mount *mp; | ||
1387 | int i; | 1386 | int i; |
1388 | 1387 | ||
1389 | lidp = licp->lic_descs; | 1388 | lidp = licp->lic_descs; |
1390 | for (i = 0; i < licp->lic_unused; i++, lidp++) { | 1389 | for (i = 0; i < licp->lic_unused; i++, lidp++) { |
1390 | struct xfs_ail *ailp; | ||
1391 | |||
1391 | if (xfs_lic_isfree(licp, i)) { | 1392 | if (xfs_lic_isfree(licp, i)) { |
1392 | continue; | 1393 | continue; |
1393 | } | 1394 | } |
@@ -1424,19 +1425,19 @@ xfs_trans_chunk_committed( | |||
1424 | * This would cause the earlier transaction to fail | 1425 | * This would cause the earlier transaction to fail |
1425 | * the test below. | 1426 | * the test below. |
1426 | */ | 1427 | */ |
1427 | mp = lip->li_mountp; | 1428 | ailp = lip->li_ailp; |
1428 | spin_lock(&mp->m_ail_lock); | 1429 | spin_lock(&ailp->xa_lock); |
1429 | if (XFS_LSN_CMP(item_lsn, lip->li_lsn) > 0) { | 1430 | if (XFS_LSN_CMP(item_lsn, lip->li_lsn) > 0) { |
1430 | /* | 1431 | /* |
1431 | * This will set the item's lsn to item_lsn | 1432 | * This will set the item's lsn to item_lsn |
1432 | * and update the position of the item in | 1433 | * and update the position of the item in |
1433 | * the AIL. | 1434 | * the AIL. |
1434 | * | 1435 | * |
1435 | * xfs_trans_update_ail() drops the AIL lock. | 1436 | * xfs_trans_ail_update() drops the AIL lock. |
1436 | */ | 1437 | */ |
1437 | xfs_trans_update_ail(mp, lip, item_lsn); | 1438 | xfs_trans_ail_update(ailp, lip, item_lsn); |
1438 | } else { | 1439 | } else { |
1439 | spin_unlock(&mp->m_ail_lock); | 1440 | spin_unlock(&ailp->xa_lock); |
1440 | } | 1441 | } |
1441 | 1442 | ||
1442 | /* | 1443 | /* |