xfs: make the log ticket ID available outside the log infrastructure
[pandora-kernel.git] / fs / xfs / xfs_log.c
index 1efb303..19d0c5f 100644 (file)
@@ -3312,6 +3312,13 @@ xfs_log_ticket_get(
        return ticket;
 }
 
+xlog_tid_t
+xfs_log_get_trans_ident(
+       struct xfs_trans        *tp)
+{
+       return tp->t_ticket->t_tid;
+}
+
 /*
  * Allocate and initialise a new log ticket.
  */