[Diskfilemon-commits] SF.net SVN: diskfilemon:[40] trunk/debugfs_stats.c
Status: Alpha
Brought to you by:
steved62
From: <ste...@us...> - 2009-10-28 22:32:50
|
Revision: 40 http://diskfilemon.svn.sourceforge.net/diskfilemon/?rev=40&view=rev Author: steved62 Date: 2009-10-28 22:32:37 +0000 (Wed, 28 Oct 2009) Log Message: ----------- Fix a problem where ext2 file systems won't unmount after DFM has monitored files on them. The suspicion is that the alias dentries are left with their ref counts incremented. The file system export function that gets the dentry for an inode returns a dentry with its ref count incremented. DFM never decremented the ref count. There are two pieces to this fix. 1) Always call the file system's export function to get a dentry for an inode. The file system knows if it can reutrn an existing dentry or if it has to create an alias. We don't need to figure that out ourselves. 2) Always call dput() on the dentry to decrement the ref count after we have finished using the dentry to build the full file name. Modified Paths: -------------- trunk/debugfs_stats.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |