]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] proc: modify proc_pident_lookup to be completely table driven
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 2 Oct 2006 09:17:07 +0000 (02:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:13 +0000 (07:57 -0700)
commit8922f47c683fd07a4d0221068ea509798398522c
tree889b369ebf1a54a96e8a93c2d8c49921ed2fc4b4
parentf6a826d10ab189bc91e3d0dbc7fd3210859dfa18
[PATCH] proc: modify proc_pident_lookup to be completely table driven

Currently proc_pident_lookup gets the names and types from a table and then
has a huge switch statement to get the inode and file operations it needs.
That is silly and is becoming increasingly hard to maintain so I just put all
of the information in the table.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/base.c
include/linux/proc_fs.h