archive mirror
 help / color / mirror / Atom feed
From: Sudheendra Sampath <>
Subject: [lustre-devel] mdc_resource_inode_free()
Date: Tue, 22 Dec 2020 12:25:42 -0800	[thread overview]
Message-ID: <> (raw)

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


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.

Sudheendra Sampath

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

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

lustre-devel mailing list

             reply	other threads:[~2020-12-22 20:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-22 20:25 Sudheendra Sampath [this message]
2020-12-31  0:52 ` Andreas Dilger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: [lustre-devel] mdc_resource_inode_free()' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).