]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Simplify proc/devices and fix early termination regression
authorJoe Korty <joe.korty@ccur.com>
Fri, 31 Mar 2006 10:30:32 +0000 (02:30 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:18:53 +0000 (12:18 -0800)
commit5a5d6e81e73e498747a4595d95110f7dcc7f0ede
tree1f61fce839cec8d672ae06a423d46f0a6fcd924d
parent5e10226aa12bfabfd278f2f0e0851e3c3ee19c52
[PATCH] Simplify proc/devices and fix early termination regression

Make baby-simple the code for /proc/devices.  Based on the proven design
for /proc/interrupts.

This also fixes the early-termination regression 2.6.16 introduced, as
demonstrated by:

    # dd if=/proc/devices bs=1
    Character devices:
      1 mem
    27+0 records in
    27+0 records out

This should also work (but is untested) when /proc/devices >4096 bytes,
which I believe is what the original 2.6.16 rewrite fixed.

[akpm@osdl.org: cleanups, simplifications]
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
block/genhd.c
fs/char_dev.c
fs/proc/proc_misc.c
include/linux/fs.h