]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/xfs/xfs_trans.h
[XFS] remove unused struct xfs_ail_ticket
[karo-tx-linux.git] / fs / xfs / xfs_trans.h
index a263aec8b3a6532b8dd8b887cc6f073bf4348f42..0f333fba187ca547be8eec04402a431fb3699978 100644 (file)
@@ -135,19 +135,6 @@ typedef struct xfs_ail_entry {
        struct xfs_log_item     *ail_back;      /* AIL back pointer */
 } xfs_ail_entry_t;
 
-/*
- * This structure is passed as a parameter to xfs_trans_push_ail()
- * and is used to track the what LSN the waiting processes are
- * waiting to become unused.
- */
-typedef struct xfs_ail_ticket {
-       xfs_lsn_t               at_lsn;         /* lsn waitin for */
-       struct xfs_ail_ticket   *at_forw;       /* wait list ptr */
-       struct xfs_ail_ticket   *at_back;       /* wait list ptr */
-       sv_t                    at_sema;        /* wait sema */
-} xfs_ail_ticket_t;
-
-
 typedef struct xfs_log_item {
        xfs_ail_entry_t                 li_ail;         /* AIL pointers */
        xfs_lsn_t                       li_lsn;         /* last on-disk lsn */
@@ -1025,7 +1012,12 @@ void             xfs_trans_log_efd_extent(xfs_trans_t *,
                                         struct xfs_efd_log_item *,
                                         xfs_fsblock_t,
                                         xfs_extlen_t);
-int            xfs_trans_commit(xfs_trans_t *, uint flags, xfs_lsn_t *);
+int            _xfs_trans_commit(xfs_trans_t *,
+                                 uint flags,
+                                 xfs_lsn_t *,
+                                 int *);
+#define xfs_trans_commit(tp, flags, lsn) \
+       _xfs_trans_commit(tp, flags, lsn, NULL)
 void           xfs_trans_cancel(xfs_trans_t *, int);
 void           xfs_trans_ail_init(struct xfs_mount *);
 xfs_lsn_t      xfs_trans_push_ail(struct xfs_mount *, xfs_lsn_t);