From: Eric W. Biederman Date: Wed, 11 Feb 2009 21:20:23 +0000 (-0800) Subject: sysfs: reference sysfs_dirent from sysfs inodes X-Git-Tag: v2.6.30-rc1~671^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04256b4a8fc73f54cd14f20867882c299728a446;p=pandora-kernel.git sysfs: reference sysfs_dirent from sysfs inodes 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. [akpm@linux-foundation.org: add comment] Signed-off-by: Eric W. Biederman Cc: Tejun Heo Cc: Al Viro Cc: Cornelia Huck Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed