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

Andrew Morton
2006-06-20T00:52:52Z

Jeff Mahoney <jeffm@suse.com> 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.