]> git.baikalelectronics.ru Git - kernel.git/commit
block: only define 'nr_sects_seq' in hd_part for 32bit SMP
authorMing Lei <ming.lei@redhat.com>
Fri, 8 May 2020 08:17:56 +0000 (16:17 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 May 2020 02:31:39 +0000 (20:31 -0600)
commit3f9417e8b95e1ed58e791bf0a992a469cd02b5c1
tree0c1fd4194b7af7d096e73834fde80cce5bb4ba64
parentd3cdfe1c38cbd70a7f622d2aa62174e17d491706
block: only define 'nr_sects_seq' in hd_part for 32bit SMP

The seqcount of 'nr_sects_seq' is only needed in case of 32bit SMP,
so define it just for 32bit SMP.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@infradead.org>
Cc: Yufen Yu <yuyufen@huawei.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Hou Tao <houtao1@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
block/partitions/core.c
include/linux/genhd.h