Re: [PATCH] block: Invalidate cache on discard

From: Christoph Hellwig
Date: Wed Mar 22 2017 - 15:13:29 EST


On Wed, Mar 22, 2017 at 06:30:28PM +0400, Dmitry Monakhov wrote:
> +
> + mapping = bdev->bd_inode->i_mapping;

move this assignment to the declaration of mapping at the beginning
of the function?

Otherwise this looks fine:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>