]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] proc: link count fix
authorMiklos Szeredi <miklos@szeredi.hu>
Tue, 6 Sep 2005 22:17:18 +0000 (15:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:28 +0000 (16:57 -0700)
commitb17301c5d4e7250b8257b92f2c9a7a95cfbb9d2f
tree06c0899b0071ec7cc9b3761c185452fa2c6f243b
parent1ccf3050617fe8d5ad891f58ec6362a2fc01af66
[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 <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/generic.c