mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
UPSTREAM: scsi/ufs: Rename a 'dir' argument into 'op'
Improve consistency of the kernel code by renaming a request operation
argument from 'dir' into 'op'.
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Change-Id: Ide046fe3acfb405c95f246160b456c53c03f63ba
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-44-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Bug: 258234315
(cherry picked from commit 0d8009f39d)
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Alistair Delva
parent
d8782bbd49
commit
c321cdeb5e
@@ -433,9 +433,8 @@ int ufshpb_prep(struct ufs_hba *hba, struct ufshcd_lrb *lrbp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct ufshpb_req *ufshpb_get_req(struct ufshpb_lu *hpb,
|
||||
int rgn_idx, enum req_opf dir,
|
||||
bool atomic)
|
||||
static struct ufshpb_req *ufshpb_get_req(struct ufshpb_lu *hpb, int rgn_idx,
|
||||
enum req_opf op, bool atomic)
|
||||
{
|
||||
struct ufshpb_req *rq;
|
||||
struct request *req;
|
||||
@@ -446,7 +445,7 @@ static struct ufshpb_req *ufshpb_get_req(struct ufshpb_lu *hpb,
|
||||
return NULL;
|
||||
|
||||
retry:
|
||||
req = blk_get_request(hpb->sdev_ufs_lu->request_queue, dir,
|
||||
req = blk_get_request(hpb->sdev_ufs_lu->request_queue, op,
|
||||
BLK_MQ_REQ_NOWAIT);
|
||||
|
||||
if (!atomic && (PTR_ERR(req) == -EWOULDBLOCK) && (--retries > 0)) {
|
||||
|
||||
Reference in New Issue
Block a user