Re: [PATCH] sysfs: Reference sysfs_dirent from sysfs inodes.

From: Tejun Heo
Date: Fri Jan 23 2009 - 01:35:31 EST


Eric W. Biederman wrote:
> The sysfs_dirent serves as both an inode and a directory entry
> for sysfs. To prevent the sysfs inode numbers from being freed
> prematurely hold a reference to sysfs_dirent from the sysfs inode.
>
> Signed-off-by: Eric W. Biederman <ebiederm@xxxxxxxxxxxxxxxxxx>

Thanks for working on this. Can you please add a comment explaining
it on top of sysfs_delete_inode()?

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/