Re: [Xen-devel] [PATCH V3 4/9] blk-zoned: update blkdev_reset_zones() with helper

2019-07-02 Thread Chaitanya Kulkarni
On 7/2/19 5:23 PM, Minwoo Im wrote: > On 19-07-02 10:42:30, Chaitanya Kulkarni wrote: >> This patch updates the blkdev_reset_zones() with newly introduced >> helper function to read the nr_sects from block device's hd_parts with >> the help of part_nr_sects_read(). >

[Xen-devel] [PATCH V3 5/9] bcache: update cached_dev_init() with helper

2019-07-02 Thread Chaitanya Kulkarni
he help of part_nr_sects_read(). Acked-by: Coly Li Signed-off-by: Chaitanya Kulkarni --- drivers/md/bcache/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 1b63ac876169..6a29ba89dae1 100644 --- a/drivers/md/bcache/sup

[Xen-devel] [PATCH V3 7/9] blktrace: use helper in blk_trace_setup_lba()

2019-07-02 Thread Chaitanya Kulkarni
This patch updates the blk_trace_setup_lba() with newly introduced helper function to read the nr_sects from block device's hd_parts with the help of part_nr_sects_read(). Signed-off-by: Chaitanya Kulkarni --- kernel/trace/blktrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[Xen-devel] [PATCH V3 4/9] blk-zoned: update blkdev_reset_zones() with helper

2019-07-02 Thread Chaitanya Kulkarni
This patch updates the blkdev_reset_zones() with newly introduced helper function to read the nr_sects from block device's hd_parts with the help of part_nr_sects_read(). Signed-off-by: Chaitanya Kulkarni --- block/blk-zoned.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[Xen-devel] [PATCH V3 2/9] blk-zoned: update blkdev_nr_zones() with helper

2019-07-02 Thread Chaitanya Kulkarni
This patch updates the blkdev_nr_zones() with newly introduced helper function to read the nr_sects from block device's hd_parts with the help if part_nr_sects_read(). Signed-off-by: Chaitanya Kulkarni --- block/blk-zoned.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[Xen-devel] [COMPILE TEST ONLY PATCH V3 9/9] xen/blkback: use helper in vbd_sz()

2019-07-02 Thread Chaitanya Kulkarni
This patch updates the vbd_sz() macro with newly introduced helper function to read the nr_sects from block device's hd_parts with the help of part_nr_sects_read(). Signed-off-by: Chaitanya Kulkarni --- drivers/block/xen-blkback/common.h | 2 +- 1 file changed, 1 insertion(+), 1 del

[Xen-devel] [COMPILE TEST ONLY PATCH V3 8/9] target/pscsi: use helper in pscsi_get_blocks()

2019-07-02 Thread Chaitanya Kulkarni
This patch updates the pscsi_get_blocks() with newly introduced helper function to read the nr_sects from block device's hd_parts with the help of part_nr_sects_read(). Signed-off-by: Chaitanya Kulkarni --- drivers/target/target_core_pscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[Xen-devel] [PATCH V3 1/9] block: add a helper function to read nr_setcs

2019-07-02 Thread Chaitanya Kulkarni
This patch introduces helper function to read the number of sectors from struct block_device->bd_part member. For more details Please refer to the comment in the include/linux/genhd.h for part_nr_sects_read(). Signed-off-by: Chaitanya Kulkarni --- include/linux/blkdev.h | 6 ++ 1 f

[Xen-devel] [PATCH V3 0/9] block: use right accessor to read nr_sects

2019-07-02 Thread Chaitanya Kulkarni
. 2. Get rid of extra variable in the bdev_nr_setcs(). 3. Add compile only patch for xen/blkback. Chaitanya Kulkarni (9): block: add a helper function to read nr_setcs blk-zoned: update blkdev_nr_zones() with helper blk-zoned: update blkdev_report_zone() with helper blk-zoned: update blkd

[Xen-devel] [PATCH V3 6/9] f2fs: use helper in init_blkz_info()

2019-07-02 Thread Chaitanya Kulkarni
This patch updates the init_blkz_info() with newly introduced helper function to read the nr_sects from block device's hd_parts with the help of part_nr_sects_read(). Signed-off-by: Chaitanya Kulkarni --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Xen-devel] [PATCH V3 3/9] blk-zoned: update blkdev_report_zone() with helper

2019-07-02 Thread Chaitanya Kulkarni
This patch updates the blkdev_report_zone(s)() with newly introduced helper function to read the nr_sects from block device's hd_parts with the help of part_nr_sects_read(). Signed-off-by: Chaitanya Kulkarni --- block/blk-zoned.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

<    1   2