lkml.org 
[lkml]   [1999]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Question] does iput(iget(...)) work?
> 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.
>
I've been looking into VFS and ext2 code and it seems that there
is really nothing which prevents you from getting deleted inode
and because it has nlink=0 VFS tries to delete it once again when
you iput it. The conclusion is: don't get deleted inodes ;-).
But there could be some test in VFS or filesystem code whether
the nlink != 0 when reading inode...

Honza.


-
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.050 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site