]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: fix sysfs root inode nlink accounting
authorTejun Heo <htejun@gmail.com>
Wed, 18 Jul 2007 05:29:06 +0000 (14:29 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 Jul 2007 22:49:49 +0000 (15:49 -0700)
commit38f6e2fd9f9f20cf7f7f15335ee36bc15129ac91
tree87acb330e8978738d013f10206562c89b85a1a7b
parentb7fb802496425dbe5315a332e40f5e0c0dfb094a
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 <htejun@gmail.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/mount.c