]> git.baikalelectronics.ru Git - kernel.git/commit
proc: calculate the correct /proc/<pid> link count
authorVegard Nossum <vegard.nossum@gmail.com>
Fri, 6 Jun 2008 05:46:53 +0000 (22:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2008 18:29:13 +0000 (11:29 -0700)
commit3a43881e4f8c44065c74d0e6ace0b8b3483154b7
tree8e9ba5f4d81ef3c8e8de0e0d7d6d1acaa79041f2
parentb92972db3d78cdee9e5c83d4b7066778f4b4b868
proc: calculate the correct /proc/<pid> link count

This patch:

  commit e3e121ddae3a8ca3fd30bbf02d5a9b30b6966cc7
  Author: Pavel Emelyanov <xemul@openvz.org>
  Date:   Fri Mar 7 11:08:40 2008 -0800

    [NET]: Make /proc/net a symlink on /proc/self/net (v3)

introduced a /proc/self/net directory without bumping the corresponding
link count for /proc/self.

This patch replaces the static link count initializations with a call that
counts the number of directory entries in the given pid_entry table
whenever it is instantiated, and thus relieves the burden of manually
keeping the two in sync.

[akpm@linux-foundation.org: cleanup]
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c