[lustre-devel] mdc_resource_inode_free()

Sudheendra Sampath sudheendra.sampath at gmail.com
Tue Dec 22 12:25:42 PST 2020


Hi,

I was trying to understand more about LDLM, specifically Lock Value Block
(LVB's) and stumbled upon the following code block :

static int mdc_resource_inode_free(struct ldlm_resource *res)
{
        if (res->lr_lvb_inode)
                res->lr_lvb_inode = NULL;

        return 0;
}

Shouldn't the pointer (lr_lvb_inode) be freed before assigning it to NULL
?

Just curious to know.
-- 
Regards

Sudheendra Sampath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20201222/e9739079/attachment.html>


More information about the lustre-devel mailing list