Diff for /xfs-linux/xfs_log_recover.c between versions 1.319 and 1.320

version 1.319, 2007/05/22 15:50:48 version 1.320, 2007/08/02 15:56:48
Line 1366  xlog_recover_add_to_cont_trans( Line 1366  xlog_recover_add_to_cont_trans(
         int                     old_len;          int                     old_len;
   
         item = trans->r_itemq;          item = trans->r_itemq;
         if (item == 0) {          if (item == NULL) {
                 /* finish copying rest of trans header */                  /* finish copying rest of trans header */
                 xlog_recover_add_item(&trans->r_itemq);                  xlog_recover_add_item(&trans->r_itemq);
                 ptr = (xfs_caddr_t) &trans->r_theader +                  ptr = (xfs_caddr_t) &trans->r_theader +
Line 1412  xlog_recover_add_to_trans( Line 1412  xlog_recover_add_to_trans(
         if (!len)          if (!len)
                 return 0;                  return 0;
         item = trans->r_itemq;          item = trans->r_itemq;
         if (item == 0) {          if (item == NULL) {
                 ASSERT(*(uint *)dp == XFS_TRANS_HEADER_MAGIC);                  ASSERT(*(uint *)dp == XFS_TRANS_HEADER_MAGIC);
                 if (len == sizeof(xfs_trans_header_t))                  if (len == sizeof(xfs_trans_header_t))
                         xlog_recover_add_item(&trans->r_itemq);                          xlog_recover_add_item(&trans->r_itemq);
Line 1467  xlog_recover_unlink_tid( Line 1467  xlog_recover_unlink_tid(
         xlog_recover_t          *tp;          xlog_recover_t          *tp;
         int                     found = 0;          int                     found = 0;
   
         ASSERT(trans != 0);          ASSERT(trans != NULL);
         if (trans == *q) {          if (trans == *q) {
                 *q = (*q)->r_next;                  *q = (*q)->r_next;
         } else {          } else {
                 tp = *q;                  tp = *q;
                 while (tp != 0) {                  while (tp) {
                         if (tp->r_next == trans) {                          if (tp->r_next == trans) {
                                 found = 1;                                  found = 1;
                                 break;                                  break;
Line 1495  xlog_recover_insert_item_backq( Line 1495  xlog_recover_insert_item_backq(
         xlog_recover_item_t     **q,          xlog_recover_item_t     **q,
         xlog_recover_item_t     *item)          xlog_recover_item_t     *item)
 {  {
         if (*q == 0) {          if (*q == NULL) {
                 item->ri_prev = item->ri_next = item;                  item->ri_prev = item->ri_next = item;
                 *q = item;                  *q = item;
         } else {          } else {
Line 1899  xlog_recover_do_reg_buffer( Line 1899  xlog_recover_do_reg_buffer(
                         break;                          break;
                 nbits = xfs_contig_bits(data_map, map_size, bit);                  nbits = xfs_contig_bits(data_map, map_size, bit);
                 ASSERT(nbits > 0);                  ASSERT(nbits > 0);
                 ASSERT(item->ri_buf[i].i_addr != 0);                  ASSERT(item->ri_buf[i].i_addr != NULL);
                 ASSERT(item->ri_buf[i].i_len % XFS_BLI_CHUNK == 0);                  ASSERT(item->ri_buf[i].i_len % XFS_BLI_CHUNK == 0);
                 ASSERT(XFS_BUF_COUNT(bp) >=                  ASSERT(XFS_BUF_COUNT(bp) >=
                        ((uint)bit << XFS_BLI_SHIFT)+(nbits<<XFS_BLI_SHIFT));                         ((uint)bit << XFS_BLI_SHIFT)+(nbits<<XFS_BLI_SHIFT));

Removed from v.1.319  
changed lines
  Added in v.1.320


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>