diff options
author | Jan Höppner <hoeppner@linux.vnet.ibm.com> | 2017-03-14 11:10:16 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-07-05 07:35:28 +0200 |
commit | 45f186becfcfa12a98acdfa2af513018d8b086e0 (patch) | |
tree | 8fe253f470ce2275f4214843c63550edb573e1aa /drivers/scsi/scsi_scan.c | |
parent | dd1023c89ec47e2abc7ba26b07251e92211e76bb (diff) | |
download | linux-45f186becfcfa12a98acdfa2af513018d8b086e0.tar.gz linux-45f186becfcfa12a98acdfa2af513018d8b086e0.tar.bz2 linux-45f186becfcfa12a98acdfa2af513018d8b086e0.zip |
s390/dasd: Refactor prefix_LRE() and related functions
We already have define_extent() that prepares necessary data for the
Define Extent CCW. The exact same thing is done in prefix_LRE().
Remove the duplicate code and move commands that were only used in
combination with the Prefix command to define_extent(). One of these
commands needs the blocksize to be specified. Add the blksize parameter
to define_extent() to account for that.
In addition, the check_XRC() function can be made more generic. Do this
and remove the Prefix-specific check_XRC_on_prefix() function.
Furthermore, prefix_LRE() uses fill_LRE_data() to prepare Locate Record
Extended data. Rename the function to fit the scheme better and make it
usable outside of the Prefix context by adding the corresponding CCW
command.
Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
0 files changed, 0 insertions, 0 deletions