linux_dsm_epyc7002/fs/sysfs
Tejun Heo e080e436f6 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>
2007-07-18 15:49:49 -07:00
..
bin.c sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes 2007-07-11 16:09:09 -07:00
dir.c sysfs: avoid kmem_cache_free(NULL) 2007-07-18 15:49:49 -07:00
file.c sysfs: make directory dentries and inodes reclaimable 2007-07-11 16:09:09 -07:00
group.c sysfs: make kobj point to sysfs_dirent instead of dentry 2007-07-11 16:09:08 -07:00
inode.c sysfs: move sysfs_drop_dentry() to dir.c and make it static 2007-07-11 16:09:09 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mount.c sysfs: fix sysfs root inode nlink accounting 2007-07-18 15:49:49 -07:00
symlink.c sysfs: restructure add/remove paths and fix inode update 2007-07-11 16:09:09 -07:00
sysfs.h sysfs: make directory dentries and inodes reclaimable 2007-07-11 16:09:09 -07:00