From: Miklos Szeredi Date: Tue, 6 Sep 2005 22:17:18 +0000 (-0700) Subject: [PATCH] proc: link count fix X-Git-Tag: v2.6.14-rc1~691 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b579beec255d6589fabe51b60933d723630bcd4;p=pandora-kernel.git [PATCH] proc: link count fix This patch fixes bug titled "sunrpc as module and bad proc/sys link count" reported by Jiri Slaby. The problem was, that only proc_dir_entry->nlink was updated and the corresponding inode->i_nlink was not. The fix is to implement the inode->getattr() method, and update i_nlink (if necessary). A quick audit of proc code shows that no other attribute changes after creation. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed