block: move {bdev,queue_limit}_discard_alignment out of line
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:52 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:59 +0000 (19:49 -0600)
commit5c4b4a5c6f11c869a57c6bd977143430bc9dc43d
tree38fac9b6a3792f223ccaf9e2d5c87444ac9dcfb1
parentf0f975a4dde890bfe25ce17bf07a6495453988a4
block: move {bdev,queue_limit}_discard_alignment out of line

No need to inline these fairly larger helpers.  Also fix the return value
to be unsigned, just like the field in struct queue_limits.

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-22-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c
include/linux/blkdev.h