Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd313778 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Nicholas Bellinger
Browse files

target: remove the task_sectors field in struct se_task



Remove the task_sectors field that isn't used anywhere.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 7a83aa4e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3723,8 +3723,6 @@ transport_allocate_data_tasks(struct se_cmd *cmd,
	task->task_sg = cmd_sg;
	task->task_sg_nents = sgl_nents;

	task->task_sectors = sectors;

	spin_lock_irqsave(&cmd->t_state_lock, flags);
	list_add_tail(&task->t_list, &cmd->t_task_list);
	spin_unlock_irqrestore(&cmd->t_state_lock, flags);
+0 −1
Original line number Diff line number Diff line
@@ -486,7 +486,6 @@ struct se_queue_obj {
};

struct se_task {
	u32			task_sectors;
	struct se_cmd		*task_se_cmd;
	struct scatterlist	*task_sg;
	u32			task_sg_nents;