patch-2.4.27 linux-2.4.27/fs/xfs/xfs_log_recover.c
Next file: linux-2.4.27/fs/xfs/xfs_macros.c
Previous file: linux-2.4.27/fs/xfs/xfs_log.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
2004-08-07 16:26:06.136407673 -0700
- Orig file:
linux-2.4.26/fs/xfs/xfs_log_recover.c
- Orig date:
2004-04-14 06:05:40.000000000 -0700
diff -urN linux-2.4.26/fs/xfs/xfs_log_recover.c linux-2.4.27/fs/xfs/xfs_log_recover.c
@@ -1867,6 +1867,7 @@
nbits = xfs_contig_bits(data_map, map_size,
bit);
+ ASSERT(nbits > 0);
reg_buf_offset = bit << XFS_BLI_SHIFT;
reg_buf_bytes = nbits << XFS_BLI_SHIFT;
item_index++;
@@ -1951,6 +1952,7 @@
if (bit == -1)
break;
nbits = xfs_contig_bits(data_map, map_size, bit);
+ ASSERT(nbits > 0);
ASSERT(item->ri_buf[i].i_addr != 0);
ASSERT(item->ri_buf[i].i_len % XFS_BLI_CHUNK == 0);
ASSERT(XFS_BUF_COUNT(bp) >=
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)