OSDN Git Service

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)
commit07c4e1e834f8e7c991aa6dcb5ee0b7f2842e495d
tree0c1fd4194b7af7d096e73834fde80cce5bb4ba64
parentb7d6c30333239f77f8e51423064a623acc7fd127
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