[Ocfs2-devel] question for lvb->lvb_igeneration

Coly Li coly.li at suse.de
Tue Mar 30 23:11:23 PDT 2010



On 03/31/2010 10:44 AM, Wengang Wang Wrote:
> Hi Coly,
> 
> Let me try to comment.
>> My question is, is it possible that same inode's lvb->lvb_size and di->i_size can be different ? And if an inode lvb is
>> really trustable when ocfs2_meta_lvb_is_trustable() returns 1 ?
> 
> I think lvb is trustable. If di->i_size mismatches lvb->lvb_size, either
> we are taking a wrong lvb or the di is stale.
>>
>> The reason why I ask this question, is because of bnc#591039 (https://bugzilla.novell.com/show_bug.cgi?id=591039).

Hi Wengang,

Thanks for the replying:-)
Another question is, in which cases when di is staled, di->i_size is different to lvb->lvb_isize ? IMHO, update the on
disk inode will take an EX lock which will update lvb->lvb_isize as well ?

-- 
Coly Li
SuSE Labs



More information about the Ocfs2-devel mailing list