<div dir="ltr">Hi,<div><br></div><div>I was trying to understand more about LDLM, specifically Lock Value Block (LVB's) and stumbled upon the following code block :</div><div><br></div><div>static int mdc_resource_inode_free(struct ldlm_resource *res)<br>{<br>        if (res->lr_lvb_inode)<br>                res->lr_lvb_inode = NULL;<br><br>        return 0;<br>}<br><div><br></div><div>Shouldn't the pointer (lr_lvb_inode) be freed before assigning it to NULL ?  </div><div><br></div><div>Just curious to know.</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Regards<br><br>Sudheendra Sampath</div></div></div>