]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dasd: Refactor dasd format functions
authorJan Höppner <hoeppner@linux.vnet.ibm.com>
Wed, 19 Aug 2015 09:16:35 +0000 (11:16 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 7 Mar 2016 12:12:00 +0000 (13:12 +0100)
commit97340a8d4df55cf94464636f5df6daaabf3ac09c
treeedc7a9b752dc07604106987770fe39ba6429f2c0
parent8de7fb54a72f40d3483ed082af0b3b8725f20ab9
s390/dasd: Refactor dasd format functions

Prepare for new format checking function by renaming functions and
moving reusable code to separate functions:

- Move sanity checks into a new function and make it reusable.
- Move common format code to a new function called
  dasd_eckd_format_process_data.
- Create the generic function dasd_eckd_format_build_ccw_req, which
  itself will then decide what ccw request is being built according to
  the input data. (with upcoming functionality).

Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_eckd.c