Re: [Question] does iput(iget(...)) work?

G. Allen Morris III (gam3@ann.ixlabs.com)
Mon, 01 Mar 1999 20:49:53 -0800


It is not that bad. I iget() an inode that happens to be deleted
and then I iput() it back with out using it. This seems to be
something that is not normally done.

Allen

>>>Jan Kara said:
> This is strange. When you do iget() on some inode an i_count is incremente
d
> and inode can't be deleted from disk until i_count is non-zero. Only when

But the inode was deleted before I called iget()!

> inode is unlinked and last user does iput() inode is really deleted. But thi
s
> messages from ext2 say the inode is already deleted => something is
> wrong. Your filesystem is corrupted or your code is wrong somehow (I can't
> just now imagine how, but it might be possible)... No matter what case this
> is I would run fsck on the filesystem...
>
---------------------------------
G. Allen Morris III

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/