Christoph Hellwig a782483cc1 block: remove the nr_sects field in struct hd_struct
Now that the hd_struct always has a block device attached to it, there is
no need for having two size field that just get out of sync.

Additionally the field in hd_struct did not use proper serialization,
possibly allowing for torn writes.  By only using the block_device field
this problem also gets fixed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Coly Li <colyli@suse.de>			[bcache]
Acked-by: Chao Yu <yuchao0@huawei.com>			[f2fs]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-12-01 14:53:40 -07:00
..
2020-10-30 14:51:01 -07:00
2020-10-24 10:39:22 -07:00
2020-11-15 10:15:17 -08:00
2020-10-16 12:21:15 -07:00
2020-10-19 14:28:30 -07:00
2020-10-28 19:12:03 +01:00
2020-10-15 14:43:29 -07:00
2020-10-12 13:26:49 -07:00
2020-11-11 09:53:09 +01:00
2020-11-05 11:32:03 -08:00
2020-10-23 10:54:13 -07:00
2020-11-15 09:49:56 -08:00
2020-10-16 12:21:15 -07:00
2020-10-24 10:39:22 -07:00
2020-10-15 14:43:29 -07:00
2020-10-24 10:39:22 -07:00
2020-10-14 15:56:58 -07:00
2020-12-01 14:53:39 -07:00
2020-10-20 10:36:41 -07:00
2020-10-25 11:12:31 -07:00
2020-10-22 12:41:00 -07:00
2020-11-10 15:35:41 +01:00
2020-10-27 19:23:04 +01:00
2020-10-24 10:33:08 -07:00
2020-10-24 10:33:08 -07:00
2020-10-22 12:56:33 -07:00
2020-10-24 10:39:22 -07:00
2020-10-22 12:58:21 -07:00
2020-10-21 11:22:08 -07:00
2020-12-01 14:53:39 -07:00
2020-10-01 22:59:55 +02:00
2020-11-08 11:28:08 -08:00
2020-12-01 14:53:39 -07:00
2020-10-31 14:41:48 -07:00
2020-11-09 08:17:46 +01:00
2020-10-23 11:00:57 -07:00
2020-10-24 10:33:08 -07:00