Re: [PATCH] sysfs: fix sysfs root inode nlink accounting

2007-07-18 Thread Jean Delvare
Hi Tejun, On Wed, 18 Jul 2007 14:29:06 +0900, Tejun Heo wrote: > While making sysfs indoes hashed, sysfs root inode was left out. Now > that nlink accounting depends on the inode being on the hash, sysfs > root inode nlink isn't adjusted properly. > > Put sysfs root inode on the inode hash by al

[PATCH] sysfs: fix sysfs root inode nlink accounting

2007-07-17 Thread Tejun Heo
While making sysfs indoes hashed, sysfs root inode was left out. Now that nlink accounting depends on the inode being on the hash, sysfs root inode nlink isn't adjusted properly. Put sysfs root inode on the inode hash by allocating it using sysfs_get_inode() like other sysfs inodes. While at it,