[Ocfs2-devel] [PATCH 1/1] OCFS2: anti stale inode for nfs (V4)

Wengang Wang wen.gang.wang at oracle.com
Tue Feb 24 19:46:36 PST 2009


Hi,

good point! thanks!

regards,
wengang.


>> +    alloc_fe = (struct ocfs2_dinode *)alloc_bh->b_data;
>> +    BUG_ON((bit + 1) > ocfs2_bits_per_group(&alloc_fe->id2.i_chain));
> here, we shouldn't BUG_ON. It actually isn't a kernel bug. the 'bit' is 
> got from the disk by function ocfs2_get_suballoc_slot_bit. So maybe a 
> corrupt inode, maybe something else, but never a bug of ocfs2. ;) So 
> just return error please.
> 




More information about the Ocfs2-devel mailing list