[lkml]   [2002]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: of dentries and inodes
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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.040 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site