commit | 70200574cc229f6ba038259e8142af2aa09e6976 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <[email protected]> | Fri Apr 15 06:52:55 2022 +0200 |
committer | Jens Axboe <[email protected]> | Sun Apr 17 19:49:59 2022 -0600 |
tree | 07398810532d1e075f413bb4771d7b90b40b1226 | |
parent | cf0fbf894bb543f472f682c486be48298eccf199 [diff] |
block: remove QUEUE_FLAG_DISCARD Just use a non-zero max_discard_sectors as an indicator for discard support, similar to what is done for write zeroes. The only places where needs special attention is the RAID5 driver, which must clear discard support for security reasons by default, even if the default stacking rules would allow for it. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Acked-by: Christoph Böhmwalder <[email protected]> [drbd] Acked-by: Jan Höppner <[email protected]> [s390] Acked-by: Coly Li <[email protected]> [bcache] Acked-by: David Sterba <[email protected]> [btrfs] Reviewed-by: Chaitanya Kulkarni <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>