Merge tag 'ceph-for-5.14-rc6' of git://github.com/ceph/ceph-client
[linux-2.6-microblaze.git] / fs / xfs / xfs_trans_priv.h
index 35655ea..3004aea 100644 (file)
@@ -91,26 +91,13 @@ xfs_trans_ail_update(
        xfs_trans_ail_update_bulk(ailp, NULL, &lip, 1, lsn);
 }
 
+void xfs_trans_ail_insert(struct xfs_ail *ailp, struct xfs_log_item *lip,
+               xfs_lsn_t lsn);
+
 xfs_lsn_t xfs_ail_delete_one(struct xfs_ail *ailp, struct xfs_log_item *lip);
 void xfs_ail_update_finish(struct xfs_ail *ailp, xfs_lsn_t old_lsn)
                        __releases(ailp->ail_lock);
-void xfs_trans_ail_delete(struct xfs_ail *ailp, struct xfs_log_item *lip,
-               int shutdown_type);
-
-static inline void
-xfs_trans_ail_remove(
-       struct xfs_log_item     *lip,
-       int                     shutdown_type)
-{
-       struct xfs_ail          *ailp = lip->li_ailp;
-
-       spin_lock(&ailp->ail_lock);
-       /* xfs_trans_ail_delete() drops the AIL lock */
-       if (test_bit(XFS_LI_IN_AIL, &lip->li_flags))
-               xfs_trans_ail_delete(ailp, lip, shutdown_type);
-       else
-               spin_unlock(&ailp->ail_lock);
-}
+void xfs_trans_ail_delete(struct xfs_log_item *lip, int shutdown_type);
 
 void                   xfs_ail_push(struct xfs_ail *, xfs_lsn_t);
 void                   xfs_ail_push_all(struct xfs_ail *);