Re: [PATCH 38/45] block: switch partition lookup to use struct block_device

2020-11-24 Thread Chao Yu
On 2020/11/24 21:27, Christoph Hellwig wrote: Use struct block_device to lookup partitions on a disk. This removes all usage of struct hd_struct from the I/O path, and this allows removing the percpu refcount in struct hd_struct. Signed-off-by: Christoph Hellwig --- block/bio.c

[PATCH 38/45] block: switch partition lookup to use struct block_device

2020-11-24 Thread Christoph Hellwig
Use struct block_device to lookup partitions on a disk. This removes all usage of struct hd_struct from the I/O path, and this allows removing the percpu refcount in struct hd_struct. Signed-off-by: Christoph Hellwig --- block/bio.c| 4 +- block/blk-core.c

Re: [PATCH 38/45] block: switch partition lookup to use struct block_device

2020-11-24 Thread Coly Li
On 11/24/20 9:27 PM, Christoph Hellwig wrote: > Use struct block_device to lookup partitions on a disk. This removes > all usage of struct hd_struct from the I/O path, and this allows removing > the percpu refcount in struct hd_struct. > > Signed-off-by: Christoph Hellwig For the bcache part,