From: Tejun Heo Date: Wed, 18 Jul 2007 05:29:06 +0000 (+0900) Subject: sysfs: fix sysfs root inode nlink accounting X-Git-Tag: v2.6.23-rc1~480^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e080e436f605877e47e4950f5386ed843badbb1b;p=pandora-kernel.git sysfs: fix sysfs root inode nlink accounting 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, massage comments a bit. Signed-off-by: Tejun Heo Acked-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed