target: Remove enum transport_lunflags_table
authorAndy Grover <agrover@redhat.com>
Thu, 25 Feb 2016 23:14:32 +0000 (15:14 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Mar 2016 05:48:55 +0000 (21:48 -0800)
commit03a68b44faff1b3eef5424952044747c9c555f0e
tree4a1e59d4735b892ff4f41ef1bffe3be29060bbe3
parent07b6319687026bdac90a0bb9eeb0509f1ff27179
target: Remove enum transport_lunflags_table

se_dev_entry.lun_flags and se_lun.lun_access are only used for keeping
track of read-write vs. read-only state. Since this is an either/or thing
we can represent it as bool, and remove the unneeded enum
transport_lunflags_table, which is left over from when there were more
flags.

Change code that uses this enum to just use true/false, and make it clear
through variable and param names that true means read-only, false means
read-write.

Signed-off-by: Andy Grover <agrover@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c
drivers/target/target_core_fabric_configfs.c
drivers/target/target_core_internal.h
drivers/target/target_core_spc.c
drivers/target/target_core_tpg.c
include/target/target_core_base.h