]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite104db30155c0a1e6fdcbb80b5bd396a51ee8fb0
tree38fac9b6a3792f223ccaf9e2d5c87444ac9dcfb1
parent53041ecfcd4d68e7efa3fab0baf202633850fbd5
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