]> 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)
commit3df510ec5e187392e139e9db4936bc44f863e297
tree67f8c18b472ef61230e37cd14c200fc3e2a9396e
parentfecccdc46b0824c30b05dc93b463da543e1f36ad
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