On Thu, Apr 8, 2010 at 12:01 PM, Jan Kara <jack@xxxxxxx> wrote: > On Thu 08-04-10 11:57:48, Jan Kara wrote: >> On Fri 26-03-10 14:07:00, Francis Moreau wrote: >> > This patch removes a useless call to brelse(bitmap_bh) since at that >> > point bitmap_bh is NULL. >> > >> > It also converts the last brelse(bitmap_bh) into a __brelse(bitmap_bh) >> > since at that point bitmap_bh is no more NULL. >> The cleanup looks fine. Only I'd use normal brelse instead of __brelse >> at the end. The compiler should figure out itself that the check is >> unnecessary (if not, the cost of extra test is negligible in that path >> anyway) and you don't have to think twice when looking at the function. >> Also you don't have to initialize bitmap_bh to NULL after your cleanups. >> So I've taken your patch with these two minor changes. > Just for reference, here's the patch I currently carry. > ok, thanks -- Francis -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html