]> www.infradead.org Git - users/hch/block.git/commit
sd: factor out a sd_discard_mode helper
authorChristoph Hellwig <hch@lst.de>
Tue, 21 May 2024 20:17:44 +0000 (13:17 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 May 2024 07:29:23 +0000 (09:29 +0200)
commit37fc933784f81b440a94dc8b9dcc32858389125b
tree83ad531cc1ee7e38cffd984a6a168b56283987a1
parent047cca762c846ef5972416e7e89325c586c5ce09
sd: factor out a sd_discard_mode helper

Split the logic to pick the right discard mode into a little helper
to prepare for further changes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
drivers/scsi/sd.c