lkml.org 
[lkml]   [2022]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 01/16] block: make blkdev_nr_zones and blk_queue_zone_no generic for npo2 zsze
    From
    On 4/27/22 09:02, Pankaj Raghav wrote:
    > Adapt blkdev_nr_zones and blk_queue_zone_no function so that it can
    > also work for non-power-of-2 zone sizes.
    >
    > As the existing deployments of zoned devices had power-of-2
    > assumption, power-of-2 optimized calculation is kept for those devices.
    >
    > There are no direct hot paths modified and the changes just
    > introduce one new branch per call.
    >
    > Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
    > Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
    > ---
    > block/blk-zoned.c | 8 +++++++-
    > include/linux/blkdev.h | 8 +++++++-
    > 2 files changed, 14 insertions(+), 2 deletions(-)
    >
    Reviewed-by: Hannes Reinecke <hare@suse.de>

    Cheers,

    Hannes
    --
    Dr. Hannes Reinecke Kernel Storage Architect
    hare@suse.de +49 911 74053 688
    SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
    HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer

    \
     
     \ /
      Last update: 2022-05-04 19:23    [W:4.037 / U:1.148 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site