From: Eric W. Biederman Date: Mon, 19 Dec 2011 04:09:31 +0000 (-0800) Subject: sysfs: Kill nlink counting. X-Git-Tag: v3.4-rc1~187^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=524b6c5b39b931311dfe5a2f5abae2f5c9731676;p=pandora-kernel.git sysfs: Kill nlink counting. Tracking the number of subdirectories requires an extra field that increases the size of sysfs_dirent. nlinks are not particularly interesting for sysfs and the nlink counts are wrong when network namespaces are involved so stop counting them, and always return nlink == 1. Userspace already knows that directories with nlink == 1 have an nlink count they can't use to count subdirectories. This reduces the size of sysfs_dirent by 8 bytes on 64bit platforms. Signed-off-by: Eric W. Biederman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed