]> git.baikalelectronics.ru Git - kernel.git/commit
sd: split sd_setup_discard_cmnd
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Apr 2017 17:20:59 +0000 (19:20 +0200)
committerJens Axboe <axboe@fb.com>
Sat, 8 Apr 2017 17:25:38 +0000 (11:25 -0600)
commit3a69e156a6c6575c60d0341904dc0dbae64f75e5
tree5480215876d9072e6381296428fa3465d52af273
parent4a0c32233a866c4c378ffc866600939a3914f4e1
sd: split sd_setup_discard_cmnd

Split sd_setup_discard_cmnd into one function per provisioning type.  While
this creates some very slight duplication of boilerplate code it keeps the
code modular for additions of new provisioning types, and for reusing the
write same functions for the upcoming scsi implementation of the Write Zeroes
operation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/sd.c