diff options
Diffstat (limited to 'fs/xfs/xfs_inode_item.c')
-rw-r--r-- | fs/xfs/xfs_inode_item.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_inode_item.c b/fs/xfs/xfs_inode_item.c index 97c7452e2620..291d30aded69 100644 --- a/fs/xfs/xfs_inode_item.c +++ b/fs/xfs/xfs_inode_item.c | |||
@@ -991,7 +991,7 @@ xfs_iflush_done( | |||
991 | */ | 991 | */ |
992 | if (iip->ili_logged && | 992 | if (iip->ili_logged && |
993 | (iip->ili_item.li_lsn == iip->ili_flush_lsn)) { | 993 | (iip->ili_item.li_lsn == iip->ili_flush_lsn)) { |
994 | spin_lock(&ip->i_mount->m_ail_lock); | 994 | spin_lock(&ip->i_mount->m_ail->xa_lock); |
995 | if (iip->ili_item.li_lsn == iip->ili_flush_lsn) { | 995 | if (iip->ili_item.li_lsn == iip->ili_flush_lsn) { |
996 | /* | 996 | /* |
997 | * xfs_trans_delete_ail() drops the AIL lock. | 997 | * xfs_trans_delete_ail() drops the AIL lock. |
@@ -999,7 +999,7 @@ xfs_iflush_done( | |||
999 | xfs_trans_delete_ail(ip->i_mount, | 999 | xfs_trans_delete_ail(ip->i_mount, |
1000 | (xfs_log_item_t*)iip); | 1000 | (xfs_log_item_t*)iip); |
1001 | } else { | 1001 | } else { |
1002 | spin_unlock(&ip->i_mount->m_ail_lock); | 1002 | spin_unlock(&ip->i_mount->m_ail->xa_lock); |
1003 | } | 1003 | } |
1004 | } | 1004 | } |
1005 | 1005 | ||
@@ -1038,14 +1038,14 @@ xfs_iflush_abort( | |||
1038 | mp = ip->i_mount; | 1038 | mp = ip->i_mount; |
1039 | if (iip) { | 1039 | if (iip) { |
1040 | if (iip->ili_item.li_flags & XFS_LI_IN_AIL) { | 1040 | if (iip->ili_item.li_flags & XFS_LI_IN_AIL) { |
1041 | spin_lock(&mp->m_ail_lock); | 1041 | spin_lock(&mp->m_ail->xa_lock); |
1042 | if (iip->ili_item.li_flags & XFS_LI_IN_AIL) { | 1042 | if (iip->ili_item.li_flags & XFS_LI_IN_AIL) { |
1043 | /* | 1043 | /* |
1044 | * xfs_trans_delete_ail() drops the AIL lock. | 1044 | * xfs_trans_delete_ail() drops the AIL lock. |
1045 | */ | 1045 | */ |
1046 | xfs_trans_delete_ail(mp, (xfs_log_item_t *)iip); | 1046 | xfs_trans_delete_ail(mp, (xfs_log_item_t *)iip); |
1047 | } else | 1047 | } else |
1048 | spin_unlock(&mp->m_ail_lock); | 1048 | spin_unlock(&mp->m_ail->xa_lock); |
1049 | } | 1049 | } |
1050 | iip->ili_logged = 0; | 1050 | iip->ili_logged = 0; |
1051 | /* | 1051 | /* |