[RFC PATCH 4/5] mm: add generic type support for device zone page migration

Christoph Hellwig hch at lst.de
Sat May 29 06:40:22 UTC 2021


On Thu, May 27, 2021 at 07:08:08PM -0400, Felix Kuehling wrote:
> -	expected_count += is_device_private_page(page);
> +	expected_count +=
> +			(is_device_private_page(page) || is_device_generic_page(page));

Please avoid the completely unreadable overly long lines.  And given
how oftへn this check is duplicated you probably really want a helper.
And properly document it while you're at it.


More information about the amd-gfx mailing list