Messages in this thread | | | Date | Thu, 4 Mar 1999 12:52:08 +0100 | From | Jan Kara <> | Subject | Re: [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/
| |