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

From: Mike Snitzer
Date: Tue May 23 2023 - 12:57:00 EST


On Tue, May 23 2023 at 3:45P -0400,
Christoph Hellwig <hch@xxxxxx> 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@xxxxxx>

Reviewed-by: Mike Snitzer <snitzer@xxxxxxxxxx>