lustre-devel-lustre.org archive mirror
 help / color / mirror / Atom feed
* [lustre-devel] mdc_resource_inode_free()
@ 2020-12-22 20:25 Sudheendra Sampath
  2020-12-31  0:52 ` Andreas Dilger
  0 siblings, 1 reply; 2+ messages in thread
From: Sudheendra Sampath @ 2020-12-22 20:25 UTC (permalink / raw)
  To: lustre-devel


[-- Attachment #1.1: Type: text/plain, Size: 423 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 683 bytes --]

[-- Attachment #2: Type: text/plain, Size: 165 bytes --]

_______________________________________________
lustre-devel mailing list
lustre-devel@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-31  0:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-22 20:25 [lustre-devel] mdc_resource_inode_free() Sudheendra Sampath
2020-12-31  0:52 ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).