diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-06-01 03:11:18 -0700 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-06-08 23:26:38 -0700 |
commit | 9ae0e9ade56f23765366d2cfad24e65f28df977d (patch) | |
tree | a0a5fb5708897a05969054e29b4179e1e9f16e3d /include/target | |
parent | c17cd24959cdb12c855dc61e20c36fa25f21f3d3 (diff) | |
download | linux-stable-9ae0e9ade56f23765366d2cfad24e65f28df977d.tar.gz linux-stable-9ae0e9ade56f23765366d2cfad24e65f28df977d.tar.bz2 linux-stable-9ae0e9ade56f23765366d2cfad24e65f28df977d.zip |
target/configfs: Kill se_lun->lun_link_magic
Instead of using a hardcoded magic value in se_lun when verifying
a target config_item symlink source during target_fabric_mappedlun_link(),
go ahead and use target_fabric_port_item_ops directly instead.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Mike Christie <mchristi@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_base.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index c3c14d053122..47d9f381209f 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h @@ -701,8 +701,6 @@ struct scsi_port_stats { struct se_lun { u64 unpacked_lun; -#define SE_LUN_LINK_MAGIC 0xffff7771 - u32 lun_link_magic; bool lun_shutdown; bool lun_access_ro; u32 lun_index; |