Skip to content

Commit

Permalink
blk-zoned: Remove the definition of blk_zone_start()
Browse files Browse the repository at this point in the history
Commit e76239a ("block: add a report_zones method") removed the last
blk_zone_start() call. Hence also remove the definition of this function.

Cc: Christoph Hellwig <[email protected]>
Cc: Damien Le Moal <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Himanshu Madhani <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
bvanassche authored and axboe committed Apr 7, 2021
1 parent 580dca8 commit 540ad3f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions block/blk-zoned.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ const char *blk_zone_cond_str(enum blk_zone_cond zone_cond)
}
EXPORT_SYMBOL_GPL(blk_zone_cond_str);

static inline sector_t blk_zone_start(struct request_queue *q,
sector_t sector)
{
sector_t zone_mask = blk_queue_zone_sectors(q) - 1;

return sector & ~zone_mask;
}

/*
* Return true if a request is a write requests that needs zone write locking.
*/
Expand Down

0 comments on commit 540ad3f

Please sign in to comment.