[PATCH 17/24] dm-snap: simplify the origin_dev == cow_dev check in snapshot_ctr

Mike Snitzer snitzer at kernel.org
Tue May 23 09:56:00 PDT 2023


On Tue, May 23 2023 at  3:45P -0400,
Christoph Hellwig <hch at lst.de> wrote:

> Use the block_device acquired in dm_get_device for the check instead
> of doing an extra lookup.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>

Reviewed-by: Mike Snitzer <snitzer at kernel.org>



More information about the linux-mtd mailing list