lkml.org 
[lkml]   [2004]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/5] Free sysfs_dirent on file removal
On Thu, Jul 29, 2004 at 03:40:31PM -0500, Maneesh Soni wrote:
>
>
> o The following patch implements the code to free up the sysfs_dirents upon
> directory or file removal. It uses the sysfs_dirent based tree in order
> to remove the directory contents before removing the directory itself.
> It could do this without taking dcache_lock in sysfs_remove_dir() as
> it doesnot use dentry based tree.

ACK, but some of that (freeing sysfs_dirent upon removal, no smarts, just
enough to plug the leak) belongs in the first chunk.

Note that there we shouldn't care about refcounts - that stuff belongs here.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [from the cache]
©2003-2011 Jasper Spaans