drm: convert drm_gem_put_pages() to use a folio_batch
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 21 Jun 2023 16:45:49 +0000 (17:45 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 23 Jun 2023 23:59:29 +0000 (16:59 -0700)
commit3291e09a463870610b8227f32b16b19a587edf33
treebd1a0c94e11d568866cc8e2de1d34c52cfed4c4d
parent0b62af28f249b9c4036a05acfb053058dc02e2e2
drm: convert drm_gem_put_pages() to use a folio_batch

Remove a few hidden compound_head() calls by converting the returned page
to a folio once and using the folio APIs.

Link: https://lkml.kernel.org/r/20230621164557.3510324-6-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/gpu/drm/drm_gem.c