]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] s390: use normal switch statement for ioctls in dasd_ioctlc
authorChristoph Hellwig <hch@lst.de>
Fri, 24 Mar 2006 11:15:20 +0000 (03:15 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:17 +0000 (07:33 -0800)
commit3cb7ca814cf559a44c598856c3e6aa7a90dd17c8
treea3588525dbe853d13e5f25fa496deecaa022ab3a
parent8f0579540aa044d83d5fad65dcffa5cdccf7a499
[PATCH] s390: use normal switch statement for ioctls in dasd_ioctlc

Add an ->ioctl method to the dasd_discipline structure.  This allows to apply
the same kind of cleanups the last patch applied to dasd_ioctl.c to
dasd_eckd.c (the only dasd discipline with special ioctls) aswell.

Again lots of code removed.  During auditing the ioctls I found two fishy
return value propagations from copy_{from,to}_user, maintainers please check
those, I've marked them with XXX comments.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/s390/block/dasd_eckd.c
drivers/s390/block/dasd_int.h
drivers/s390/block/dasd_ioctl.c