block: remove the discard_alignment field from struct hd_struct
authorChristoph Hellwig <hch@lst.de>
Mon, 31 Aug 2020 18:02:34 +0000 (20:02 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Sep 2020 22:49:26 +0000 (16:49 -0600)
commit7cf34d97ab45203b975396393ded9d3867dfa8bf
tree67f8c18b472ef61230e37cd14c200fc3e2a9396e
parent7b8917f5e29c377be1db5680249fe30e038cb3eb
block: remove the discard_alignment field from struct hd_struct

The alignment offset is only used in slow path callers, so just calculate
it on the fly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/core.c
include/linux/blkdev.h
include/linux/genhd.h