> On Mon, 21 Jan 2008 22:02:03 -0500 "Theodore Ts'o" <tytso@xxxxxxx> wrote: > + if (bh_submit_read(bh) < 0) { > + brelse(bh); > + ext4_error(sb, __FUNCTION__, > "Cannot read block bitmap - " > - "block_group = %lu, block_bitmap = %llu", > - block_group, bitmap_blk); > + "block_group = %d, block_bitmap = %llu", > + (int)block_group, (unsigned long long)bitmap_blk); > + return NULL; > + } > + if (!ext4_valid_block_bitmap(sb, desc, block_group, bh)) { > + brelse(bh); > + return NULL; > + } brelse() should only be used when the bh might be NULL - put_bh() can be used here. Please review all ext4/jbd2 code for this trivial speedup. - To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html