]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove queue_discard_alignment
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:50 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:59 +0000 (19:49 -0600)
commit01bf5e0c050658d7dc4131ff2cee18a7099093c4
treed414406b2e59976346b235a6db45fcb14c6be1e4
parent97afaecad05f03e425123372acd007c5f55c3f08
block: remove queue_discard_alignment

Just use bdev_alignment_offset in disk_discard_alignment_show instead.
That helpers is the same except for an always false branch that doesn't
matter in this slow path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220415045258.199825-20-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
include/linux/blkdev.h