]> www.infradead.org Git - users/hch/block.git/commit
dm-snap: simplify the origin_dev == cow_dev check in snapshot_ctr
authorChristoph Hellwig <hch@lst.de>
Sat, 20 May 2023 11:01:25 +0000 (13:01 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 31 May 2023 08:06:11 +0000 (10:06 +0200)
commit37e87d54fbf352a2e7269beedaa18f8058a2c0e4
treef8efb2077e010fd8bb78536d8f7d42507585d002
parent81b797c5123b47bbf7b1160f72ad8a17a08a7b03
dm-snap: simplify the origin_dev == cow_dev check in snapshot_ctr

Use the block_device acquired in dm_get_device for the check instead
of doing an extra lookup.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-snap.c