Re: [PATCH v2 5/6] md/dm-writecache: Don't request pointer dummy_addr when not required

From: Mike Snitzer
Date: Fri Jul 27 2018 - 15:33:38 EST


On Wed, Jul 25 2018 at 12:28pm -0400,
Huaisheng Ye <yehs2007@xxxxxxxx> wrote:

> From: Huaisheng Ye <yehs1@xxxxxxxxxx>
>
> Function persistent_memory_claim doesn't need to get local pointer
> dummy_addr from direct_access. Using NULL instead of having to pass
> in a useless local pointer that caller then just throw away.
>
> Suggested-by: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>
> Signed-off-by: Huaisheng Ye <yehs1@xxxxxxxxxx>

Acked-by: Mike Snitzer <snitzer@xxxxxxxxxx>