Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

target: remove the task_sectors field in struct se_task

Remove the task_sectors field that isn't used anywhere.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>

authored by

Christoph Hellwig and committed by
Nicholas Bellinger
bd313778 7a83aa4e

-3
-2
drivers/target/target_core_transport.c
··· 3723 3723 task->task_sg = cmd_sg; 3724 3724 task->task_sg_nents = sgl_nents; 3725 3725 3726 - task->task_sectors = sectors; 3727 - 3728 3726 spin_lock_irqsave(&cmd->t_state_lock, flags); 3729 3727 list_add_tail(&task->t_list, &cmd->t_task_list); 3730 3728 spin_unlock_irqrestore(&cmd->t_state_lock, flags);
-1
include/target/target_core_base.h
··· 486 486 }; 487 487 488 488 struct se_task { 489 - u32 task_sectors; 490 489 struct se_cmd *task_se_cmd; 491 490 struct scatterlist *task_sg; 492 491 u32 task_sg_nents;