Function report |
Source Code:block\blk-zoned.c |
Create Date:2022-07-28 18:06:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lk_revalidate_disk_zones - (re)allocate and initialize zone bitmaps*@disk: Target disk* Helper function for low-level device drivers to (re) allocate and initialize* a disk request queue zone bitmaps. This functions should normally be called
Proto:int blk_revalidate_disk_zones(struct gendisk *disk)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct gendisk * | disk |
438 | struct blk_revalidate_zone_args args = {disk = disk, } |
444 | If WARN_ON_ONCE(!blk_queue_is_zoned(q)) Then Return -EIO |
446 | If WARN_ON_ONCE(!queue_is_mq(q)) Then Return -EIO |
454 | ret = report_zones(disk, 0, UINT_MAX, Helper function to check the validity of zones of a zoned block device., & args) |
463 | blk_mq_freeze_queue(q) |
464 | If ret >= 0 Then |
467 | swap - swap values of @a and @b*@a: first value*@b: second value(seq_zones_wlock, seq_zones_wlock) |
468 | swap - swap values of @a and @b*@a: first value*@b: second value(conv_zones_bitmap, conv_zones_bitmap) |
469 | ret = 0 |
470 | Else |
471 | pr_warn("%s: failed to revalidate zones\n", name of major driver ) |
474 | blk_mq_unfreeze_queue(q) |
476 | kfree(seq_zones_wlock) |
477 | kfree(conv_zones_bitmap) |
478 | Return ret |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |