Re: [PATCH 03/04] reiserfs: reorganize bitmap loading functions

From: Andrew Morton
Date: Mon Jun 19 2006 - 20:51:31 EST


Jeff Mahoney <jeffm@xxxxxxxx> wrote:
>
> + for (i = 0; i < SB_BMAP_NR(sb); i++)
> + bitmap[i].bh = reiserfs_read_bitmap_block(sb, i);

Can return NULL.

> + /* make sure we have them all */
> + for (i = 0; i < SB_BMAP_NR(sb); i++) {
> + wait_on_buffer(bitmap[i].bh);

Will go oops.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/