Re: [PATCH] ext2_free_inode(): remove useless call to brelse()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux