lkml.org 
[lkml]   [1999]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Question] does iput(iget(...)) work?
Date
From
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/

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