mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
ANDROID: block: Rename blk_rq_is_seq_zone_write()
Rename this function to align the function name with the function name used in the upstream Linux kernel. Bug: 275581839 Change-Id: I085ffacf535e65d8afbb9935a2cca26c4fec0d80 Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
@@ -57,7 +57,7 @@ EXPORT_SYMBOL_GPL(blk_zone_cond_str);
|
||||
*/
|
||||
bool blk_req_needs_zone_write_lock(struct request *rq)
|
||||
{
|
||||
return rq->q->seq_zones_wlock && blk_rq_is_seq_zone_write(rq);
|
||||
return rq->q->seq_zones_wlock && blk_rq_is_seq_zoned_write(rq);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(blk_req_needs_zone_write_lock);
|
||||
|
||||
|
||||
@@ -1305,7 +1305,7 @@ static blk_status_t sd_setup_read_write_cmnd(struct scsi_cmnd *cmd)
|
||||
cmd->underflow = nr_blocks << 9;
|
||||
cmd->allowed = sdkp->max_retries;
|
||||
if (blk_queue_pipeline_zoned_writes(rq->q) &&
|
||||
blk_rq_is_seq_zone_write(rq))
|
||||
blk_rq_is_seq_zoned_write(rq))
|
||||
cmd->allowed += rq->q->nr_requests;
|
||||
cmd->sdb.length = nr_blocks * sdp->sector_size;
|
||||
|
||||
|
||||
@@ -1031,13 +1031,13 @@ static inline unsigned int blk_rq_zone_is_seq(struct request *rq)
|
||||
}
|
||||
|
||||
/**
|
||||
* blk_rq_is_seq_zone_write() - Whether @rq is a write request for a sequential zone.
|
||||
* blk_rq_is_seq_zoned_write() - Whether @rq needs write serialization.
|
||||
* @rq: Request to examine.
|
||||
*
|
||||
* In this context sequential zone means either a sequential write required or
|
||||
* to a sequential write preferred zone.
|
||||
*/
|
||||
static inline bool blk_rq_is_seq_zone_write(struct request *rq)
|
||||
static inline bool blk_rq_is_seq_zoned_write(struct request *rq)
|
||||
{
|
||||
switch (req_op(rq)) {
|
||||
case REQ_OP_WRITE_ZEROES:
|
||||
@@ -1049,7 +1049,7 @@ static inline bool blk_rq_is_seq_zone_write(struct request *rq)
|
||||
}
|
||||
}
|
||||
#else /* CONFIG_BLK_DEV_ZONED */
|
||||
static inline bool blk_rq_is_seq_zone_write(struct request *rq)
|
||||
static inline bool blk_rq_is_seq_zoned_write(struct request *rq)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user