From: Tejun Heo Date: Thu, 20 Sep 2007 07:05:10 +0000 (+0900) Subject: sysfs: kill unnecessary sysfs_get() in open paths X-Git-Tag: v2.6.24-rc1~1394^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b05f0548dabd20433f8c201a0307103721d6a18b;p=pandora-kernel.git sysfs: kill unnecessary sysfs_get() in open paths There's no reason to get an extra reference to sysfs_dirent for an open file. Open file has a reference to the dentry which in turn has a reference to sysfs_dirent. This is fairly obvious as otherwise open itself won't be able to access the sysfs_dirent. Kill the extra sysfs_get() and matching sysfs_put(). Signed-off-by: Tejun Heo Acked-by: Cornelia Huck Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed