]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87
tree5480215876d9072e6381296428fa3465d52af273
parent591c59d18f72c98ad7a992809c3a9a1789687845
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