]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8491a313a6e59811cd55a687a1b375bb7f104e87
tree67f8c18b472ef61230e37cd14c200fc3e2a9396e
parentd55d545d13d4bbd4aa71dbd07457219d87276f4c
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