]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
target: simplify XCOPY wwn->se_dev lookup helper
authorDavid Disseldorp <ddiss@suse.de>
Mon, 2 Jan 2017 17:04:05 +0000 (18:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jan 2021 12:55:12 +0000 (13:55 +0100)
commit8e3c992dceb808ab26816bbc814335b6a2634d58
tree03f3f379995eaf0ae945464941c1d5d2063ab48b
parentc85fecceec8520d2b023c3334e9561e67a32e8ee
target: simplify XCOPY wwn->se_dev lookup helper

[ Upstream commit 94aae4caacda89a1bdb7198b260f4ca3595b7ed7 ]

target_xcopy_locate_se_dev_e4() is used to locate an se_dev, based on
the WWN provided with the XCOPY request. Remove a couple of unneeded
arguments, and rely on the caller for the src/dst test.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/target/target_core_xcopy.c