]> 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)
commit9fc607be050eaf0c4ac7cdb72778425af14c8688
tree5480215876d9072e6381296428fa3465d52af273
parent91421149c0504e8b79c6c56de9061988012e3e4b
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