The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@clusterfs.com>
To: Eli Carter <eli.carter@inet.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: of dentries and inodes
Date: Wed, 14 Aug 2002 16:20:23 -0600	[thread overview]
Message-ID: <20020814222023.GN9642@clusterfs.com> (raw)
In-Reply-To: <3D5A7896.7020407@inet.com>

On Aug 14, 2002  10:34 -0500, Eli Carter wrote:
> (I'm looking at a 2.2 kernel, but I doubt this has changed.) In ext2, as 
> well as many other fs's, there appears a line much like this in their 
> 'struct file_system_type.read_super()' function:
> 
> sb->s_root = d_alloc_root(iget(sb, EXT2_ROOT_INO), NULL);
> 
> Now, I was under the impression that for each iget(), you need to have 
> an iput() when you're done with the inode... which in this case would 
> mean an iput() in 'struct super_operations.put_super()'... but I don't 
> see one there.

The dput(root) is done in fs/super.c (kill_super in 2.4).

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/


      reply	other threads:[~2002-08-14 22:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-14 15:34 of dentries and inodes Eli Carter
2002-08-14 22:20 ` Andreas Dilger [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20020814222023.GN9642@clusterfs.com \
    --to=adilger@clusterfs.com \
    --cc=eli.carter@inet.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox